/*! For license information please see LICENSES */
(window.webpackJsonp=window.webpackJsonp||[]).push([[18],{1190:function(t,r){var e,n=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];r.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return 4*t+17},r.getSymbolTotalCodewords=function(t){return n[t]},r.getBCHDigit=function(data){for(var t=0;0!==data;)t++,data>>>=1;return t},r.setToSJISFunction=function(t){if("function"!=typeof t)throw new Error('"toSJISFunc" is not a valid function.');e=t},r.isKanjiModeEnabled=function(){return void 0!==e},r.toSJIS=function(t){return e(t)}},1191:function(t,r,e){var n=e(1391),o=e(1392);r.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},r.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},r.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},r.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},r.MIXED={bit:-1},r.getCharCountIndicator=function(t,r){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!n.isValid(r))throw new Error("Invalid version: "+r);return r>=1&&r<10?t.ccBits[0]:r<27?t.ccBits[1]:t.ccBits[2]},r.getBestModeForData=function(t){return o.testNumeric(t)?r.NUMERIC:o.testAlphanumeric(t)?r.ALPHANUMERIC:o.testKanji(t)?r.KANJI:r.BYTE},r.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},r.isValid=function(t){return t&&t.bit&&t.ccBits},r.from=function(t,e){if(r.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return r.NUMERIC;case"alphanumeric":return r.ALPHANUMERIC;case"kanji":return r.KANJI;case"byte":return r.BYTE;default:throw new Error("Unknown mode: "+t)}}(t)}catch(t){return e}}},1193:function(t,r,e){"use strict";var n=e(1374);f.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()}catch(t){return!1}}();var o=f.TYPED_ARRAY_SUPPORT?2147483647:1073741823;function f(t,r,e){return f.TYPED_ARRAY_SUPPORT||this instanceof f?"number"==typeof t?l(this,t):function(t,r,e,n){if("number"==typeof r)throw new TypeError('"value" argument must not be a number');if("undefined"!=typeof ArrayBuffer&&r instanceof ArrayBuffer)return function(t,r,e,n){if(e<0||r.byteLength<e)throw new RangeError("'offset' is out of bounds");if(r.byteLength<e+(n||0))throw new RangeError("'length' is out of bounds");var o;o=void 0===e&&void 0===n?new Uint8Array(r):void 0===n?new Uint8Array(r,e):new Uint8Array(r,e,n);f.TYPED_ARRAY_SUPPORT?o.__proto__=f.prototype:o=d(t,o);return o}(t,r,e,n);if("string"==typeof r)return function(t,r){var e=0|v(r),n=c(t,e),o=n.write(r);o!==e&&(n=n.slice(0,o));return n}(t,r);return function(t,r){if(f.isBuffer(r)){var e=0|h(r.length),n=c(t,e);return 0===n.length||r.copy(n,0,0,e),n}if(r){if("undefined"!=typeof ArrayBuffer&&r.buffer instanceof ArrayBuffer||"length"in r)return"number"!=typeof r.length||(o=r.length)!=o?c(t,0):d(t,r);if("Buffer"===r.type&&Array.isArray(r.data))return d(t,r.data)}var o;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,r)}(this,t,r,e):new f(t,r,e)}function h(t){if(t>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|t}function c(t,r){var e;return f.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(r)).__proto__=f.prototype:(null===(e=t)&&(e=new f(r)),e.length=r),e}function l(t,r){var e=c(t,r<0?0:0|h(r));if(!f.TYPED_ARRAY_SUPPORT)for(var i=0;i<r;++i)e[i]=0;return e}function d(t,r){for(var e=r.length<0?0:0|h(r.length),n=c(t,e),i=0;i<e;i+=1)n[i]=255&r[i];return n}function y(t,r){var e;r=r||1/0;for(var n=t.length,o=null,f=[],i=0;i<n;++i){if((e=t.charCodeAt(i))>55295&&e<57344){if(!o){if(e>56319){(r-=3)>-1&&f.push(239,191,189);continue}if(i+1===n){(r-=3)>-1&&f.push(239,191,189);continue}o=e;continue}if(e<56320){(r-=3)>-1&&f.push(239,191,189),o=e;continue}e=65536+(o-55296<<10|e-56320)}else o&&(r-=3)>-1&&f.push(239,191,189);if(o=null,e<128){if((r-=1)<0)break;f.push(e)}else if(e<2048){if((r-=2)<0)break;f.push(e>>6|192,63&e|128)}else if(e<65536){if((r-=3)<0)break;f.push(e>>12|224,e>>6&63|128,63&e|128)}else{if(!(e<1114112))throw new Error("Invalid code point");if((r-=4)<0)break;f.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}}return f}function v(t){return f.isBuffer(t)?t.length:"undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer)?t.byteLength:("string"!=typeof t&&(t=""+t),0===t.length?0:y(t).length)}f.TYPED_ARRAY_SUPPORT&&(f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&f[Symbol.species]===f&&Object.defineProperty(f,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1})),f.prototype.write=function(t,r,e){void 0===r||void 0===e&&"string"==typeof r?(e=this.length,r=0):isFinite(r)&&(r|=0,isFinite(e)?e|=0:e=void 0);var n=this.length-r;if((void 0===e||e>n)&&(e=n),t.length>0&&(e<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");return function(t,r,e,n){return function(t,r,e,n){for(var i=0;i<n&&!(i+e>=r.length||i>=t.length);++i)r[i+e]=t[i];return i}(y(r,t.length-e),t,e,n)}(this,t,r,e)},f.prototype.slice=function(t,r){var e,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(r=void 0===r?n:~~r)<0?(r+=n)<0&&(r=0):r>n&&(r=n),r<t&&(r=t),f.TYPED_ARRAY_SUPPORT)(e=this.subarray(t,r)).__proto__=f.prototype;else{var o=r-t;e=new f(o,void 0);for(var i=0;i<o;++i)e[i]=this[i+t]}return e},f.prototype.copy=function(t,r,e,n){if(e||(e=0),n||0===n||(n=this.length),r>=t.length&&(r=t.length),r||(r=0),n>0&&n<e&&(n=e),n===e)return 0;if(0===t.length||0===this.length)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(e<0||e>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-r<n-e&&(n=t.length-r+e);var i,o=n-e;if(this===t&&e<r&&r<n)for(i=o-1;i>=0;--i)t[i+r]=this[i+e];else if(o<1e3||!f.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+r]=this[i+e];else Uint8Array.prototype.set.call(t,this.subarray(e,e+o),r);return o},f.prototype.fill=function(t,r,e){if("string"==typeof t){if("string"==typeof r?(r=0,e=this.length):"string"==typeof e&&(e=this.length),1===t.length){var code=t.charCodeAt(0);code<256&&(t=code)}}else"number"==typeof t&&(t&=255);if(r<0||this.length<r||this.length<e)throw new RangeError("Out of range index");if(e<=r)return this;var i;if(r>>>=0,e=void 0===e?this.length:e>>>0,t||(t=0),"number"==typeof t)for(i=r;i<e;++i)this[i]=t;else{var n=f.isBuffer(t)?t:new f(t),o=n.length;for(i=0;i<e-r;++i)this[i+r]=n[i%o]}return this},f.concat=function(t,r){if(!n(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return c(null,0);var i;if(void 0===r)for(r=0,i=0;i<t.length;++i)r+=t[i].length;var e=l(null,r),o=0;for(i=0;i<t.length;++i){var h=t[i];if(!f.isBuffer(h))throw new TypeError('"list" argument must be an Array of Buffers');h.copy(e,o),o+=h.length}return e},f.byteLength=v,f.prototype._isBuffer=!0,f.isBuffer=function(b){return!(null==b||!b._isBuffer)},t.exports.alloc=function(t){var r=new f(t);return r.fill(0),r},t.exports.from=function(data){return new f(data)}},1374:function(t,r){var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},1375:function(t,r){r.L={bit:1},r.M={bit:0},r.Q={bit:3},r.H={bit:2},r.isValid=function(t){return t&&void 0!==t.bit&&t.bit>=0&&t.bit<4},r.from=function(t,e){if(r.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return r.L;case"m":case"medium":return r.M;case"q":case"quartile":return r.Q;case"h":case"high":return r.H;default:throw new Error("Unknown EC Level: "+t)}}(t)}catch(t){return e}}},1390:function(t,r,e){var n=e(1375),o=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],f=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];r.getBlocksCount=function(t,r){switch(r){case n.L:return o[4*(t-1)+0];case n.M:return o[4*(t-1)+1];case n.Q:return o[4*(t-1)+2];case n.H:return o[4*(t-1)+3];default:return}},r.getTotalCodewordsCount=function(t,r){switch(r){case n.L:return f[4*(t-1)+0];case n.M:return f[4*(t-1)+1];case n.Q:return f[4*(t-1)+2];case n.H:return f[4*(t-1)+3];default:return}}},1391:function(t,r){r.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}},1392:function(t,r){var e="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",n="(?:(?![A-Z0-9 $%*+\\-./:]|"+(e=e.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";r.KANJI=new RegExp(e,"g"),r.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),r.BYTE=new RegExp(n,"g"),r.NUMERIC=new RegExp("[0-9]+","g"),r.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");var o=new RegExp("^"+e+"$"),f=new RegExp("^[0-9]+$"),h=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");r.testKanji=function(t){return o.test(t)},r.testNumeric=function(t){return f.test(t)},r.testAlphanumeric=function(t){return h.test(t)}},1393:function(t,r){function e(t){if("number"==typeof t&&(t=t.toString()),"string"!=typeof t)throw new Error("Color should be defined as hex string");var r=t.slice().replace("#","").split("");if(r.length<3||5===r.length||r.length>8)throw new Error("Invalid hex color: "+t);3!==r.length&&4!==r.length||(r=Array.prototype.concat.apply([],r.map((function(t){return[t,t]})))),6===r.length&&r.push("F","F");var e=parseInt(r.join(""),16);return{r:e>>24&255,g:e>>16&255,b:e>>8&255,a:255&e,hex:"#"+r.slice(0,6).join("")}}r.getOptions=function(t){t||(t={}),t.color||(t.color={});var r=void 0===t.margin||null===t.margin||t.margin<0?4:t.margin,n=t.width&&t.width>=21?t.width:void 0,o=t.scale||4;return{width:n,scale:n?4:o,margin:r,color:{dark:e(t.color.dark||"#000000ff"),light:e(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},r.getScale=function(t,r){return r.width&&r.width>=t+2*r.margin?r.width/(t+2*r.margin):r.scale},r.getImageWidth=function(t,e){var n=r.getScale(t,e);return Math.floor((t+2*e.margin)*n)},r.qrToImageData=function(t,e,n){for(var o=e.modules.size,data=e.modules.data,f=r.getScale(o,n),h=Math.floor((o+2*n.margin)*f),c=n.margin*f,l=[n.color.light,n.color.dark],i=0;i<h;i++)for(var d=0;d<h;d++){var y=4*(i*h+d),v=n.color.light;if(i>=c&&d>=c&&i<h-c&&d<h-c)v=l[data[Math.floor((i-c)/f)*o+Math.floor((d-c)/f)]?1:0];t[y++]=v.r,t[y++]=v.g,t[y++]=v.b,t[y]=v.a}}},1584:function(t,r,e){var n=e(1585),o=e(1586),f=e(1607),h=e(1608);function c(t,canvas,text,r,e){var f=[].slice.call(arguments,1),h=f.length,c="function"==typeof f[h-1];if(!c&&!n())throw new Error("Callback required as last argument");if(!c){if(h<1)throw new Error("Too few arguments provided");return 1===h?(text=canvas,canvas=r=void 0):2!==h||canvas.getContext||(r=text,text=canvas,canvas=void 0),new Promise((function(e,n){try{var data=o.create(text,r);e(t(data,canvas,r))}catch(t){n(t)}}))}if(h<2)throw new Error("Too few arguments provided");2===h?(e=text,text=canvas,canvas=r=void 0):3===h&&(canvas.getContext&&void 0===e?(e=r,r=void 0):(e=r,r=text,text=canvas,canvas=void 0));try{var data=o.create(text,r);e(null,t(data,canvas,r))}catch(t){e(t)}}r.create=o.create,r.toCanvas=c.bind(null,f.render),r.toDataURL=c.bind(null,f.renderToDataURL),r.toString=c.bind(null,(function(data,t,r){return h.render(data,r)}))},1585:function(t,r){t.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},1586:function(t,r,e){var n=e(1193),o=e(1190),f=e(1375),h=e(1587),c=e(1588),l=e(1589),d=e(1590),y=e(1591),v=e(1390),w=e(1592),E=e(1599),m=e(1600),A=e(1191),R=e(1601),B=e(1374);function P(t,r,e){var i,n,o=t.size,f=m.getEncodedBits(r,e);for(i=0;i<15;i++)n=1==(f>>i&1),i<6?t.set(i,8,n,!0):i<8?t.set(i+1,8,n,!0):t.set(o-15+i,8,n,!0),i<8?t.set(8,o-i-1,n,!0):i<9?t.set(8,15-i-1+1,n,!0):t.set(8,15-i-1,n,!0);t.set(o-8,8,1,!0)}function T(t,r,e){var f=new h;e.forEach((function(data){f.put(data.mode.bit,4),f.put(data.getLength(),A.getCharCountIndicator(data.mode,t)),data.write(f)}));var c=8*(o.getSymbolTotalCodewords(t)-v.getTotalCodewordsCount(t,r));for(f.getLengthInBits()+4<=c&&f.put(0,4);f.getLengthInBits()%8!=0;)f.putBit(0);for(var l=(c-f.getLengthInBits())/8,i=0;i<l;i++)f.put(i%2?17:236,8);return function(t,r,e){for(var f=o.getSymbolTotalCodewords(r),h=v.getTotalCodewordsCount(r,e),c=f-h,l=v.getBlocksCount(r,e),d=l-f%l,y=Math.floor(f/l),E=Math.floor(c/l),m=E+1,A=y-E,R=new w(A),B=0,P=new Array(l),T=new Array(l),_=0,C=n.from(t.buffer),b=0;b<l;b++){var I=b<d?E:m;P[b]=C.slice(B,B+I),T[b]=R.encode(P[b]),B+=I,_=Math.max(_,I)}var i,S,data=n.alloc(f),M=0;for(i=0;i<_;i++)for(S=0;S<l;S++)i<P[S].length&&(data[M++]=P[S][i]);for(i=0;i<A;i++)for(S=0;S<l;S++)data[M++]=T[S][i];return data}(f,t,r)}function _(data,t,r,e){var n;if(B(data))n=R.fromArray(data);else{if("string"!=typeof data)throw new Error("Invalid data");var f=t;if(!f){var h=R.rawSplit(data);f=E.getBestVersionForData(h,r)}n=R.fromString(data,f||40)}var v=E.getBestVersionForData(n,r);if(!v)throw new Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<v)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+v+".\n")}else t=v;var w=T(t,r,n),m=o.getSymbolSize(t),A=new c(m);return function(t,r){for(var e=t.size,n=d.getPositions(r),i=0;i<n.length;i++)for(var o=n[i][0],col=n[i][1],f=-1;f<=7;f++)if(!(o+f<=-1||e<=o+f))for(var h=-1;h<=7;h++)col+h<=-1||e<=col+h||(f>=0&&f<=6&&(0===h||6===h)||h>=0&&h<=6&&(0===f||6===f)||f>=2&&f<=4&&h>=2&&h<=4?t.set(o+f,col+h,!0,!0):t.set(o+f,col+h,!1,!0))}(A,t),function(t){for(var r=t.size,e=8;e<r-8;e++){var n=e%2==0;t.set(e,6,n,!0),t.set(6,e,n,!0)}}(A),function(t,r){for(var e=l.getPositions(r),i=0;i<e.length;i++)for(var n=e[i][0],col=e[i][1],o=-2;o<=2;o++)for(var f=-2;f<=2;f++)-2===o||2===o||-2===f||2===f||0===o&&0===f?t.set(n+o,col+f,!0,!0):t.set(n+o,col+f,!1,!0)}(A,t),P(A,r,0),t>=7&&function(t,r){for(var e,col,n,o=t.size,f=E.getEncodedBits(r),i=0;i<18;i++)e=Math.floor(i/3),col=i%3+o-8-3,n=1==(f>>i&1),t.set(e,col,n,!0),t.set(col,e,n,!0)}(A,t),function(t,data){for(var r=t.size,e=-1,n=r-1,o=7,f=0,col=r-1;col>0;col-=2)for(6===col&&col--;;){for(var h=0;h<2;h++)if(!t.isReserved(n,col-h)){var c=!1;f<data.length&&(c=1==(data[f]>>>o&1)),t.set(n,col-h,c),-1===--o&&(f++,o=7)}if((n+=e)<0||r<=n){n-=e,e=-e;break}}}(A,w),isNaN(e)&&(e=y.getBestMask(A,P.bind(null,A,r))),y.applyMask(e,A),P(A,r,e),{modules:A,version:t,errorCorrectionLevel:r,maskPattern:e,segments:n}}r.create=function(data,t){if(void 0===data||""===data)throw new Error("No input text");var r,mask,e=f.M;return void 0!==t&&(e=f.from(t.errorCorrectionLevel,f.M),r=E.from(t.version),mask=y.from(t.maskPattern),t.toSJISFunc&&o.setToSJISFunction(t.toSJISFunc)),_(data,r,e,mask)}},1587:function(t,r){function e(){this.buffer=[],this.length=0}e.prototype={get:function(t){var r=Math.floor(t/8);return 1==(this.buffer[r]>>>7-t%8&1)},put:function(t,r){for(var i=0;i<r;i++)this.putBit(1==(t>>>r-i-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var r=Math.floor(this.length/8);this.buffer.length<=r&&this.buffer.push(0),t&&(this.buffer[r]|=128>>>this.length%8),this.length++}},t.exports=e},1588:function(t,r,e){var n=e(1193);function o(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=n.alloc(t*t),this.reservedBit=n.alloc(t*t)}o.prototype.set=function(t,col,r,e){var n=t*this.size+col;this.data[n]=r,e&&(this.reservedBit[n]=!0)},o.prototype.get=function(t,col){return this.data[t*this.size+col]},o.prototype.xor=function(t,col,r){this.data[t*this.size+col]^=r},o.prototype.isReserved=function(t,col){return this.reservedBit[t*this.size+col]},t.exports=o},1589:function(t,r,e){var n=e(1190).getSymbolSize;r.getRowColCoords=function(t){if(1===t)return[];for(var r=Math.floor(t/7)+2,e=n(t),o=145===e?26:2*Math.ceil((e-13)/(2*r-2)),f=[e-7],i=1;i<r-1;i++)f[i]=f[i-1]-o;return f.push(6),f.reverse()},r.getPositions=function(t){for(var e=[],n=r.getRowColCoords(t),o=n.length,i=0;i<o;i++)for(var f=0;f<o;f++)0===i&&0===f||0===i&&f===o-1||i===o-1&&0===f||e.push([n[i],n[f]]);return e}},1590:function(t,r,e){var n=e(1190).getSymbolSize;r.getPositions=function(t){var r=n(t);return[[0,0],[r-7,0],[0,r-7]]}},1591:function(t,r){r.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var e=3,n=3,o=40,f=10;function h(t,i,e){switch(t){case r.Patterns.PATTERN000:return(i+e)%2==0;case r.Patterns.PATTERN001:return i%2==0;case r.Patterns.PATTERN010:return e%3==0;case r.Patterns.PATTERN011:return(i+e)%3==0;case r.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(e/3))%2==0;case r.Patterns.PATTERN101:return i*e%2+i*e%3==0;case r.Patterns.PATTERN110:return(i*e%2+i*e%3)%2==0;case r.Patterns.PATTERN111:return(i*e%3+(i+e)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}}r.isValid=function(mask){return null!=mask&&""!==mask&&!isNaN(mask)&&mask>=0&&mask<=7},r.from=function(t){return r.isValid(t)?parseInt(t,10):void 0},r.getPenaltyN1=function(data){for(var t=data.size,r=0,n=0,o=0,f=null,h=null,c=0;c<t;c++){n=o=0,f=h=null;for(var col=0;col<t;col++){var l=data.get(c,col);l===f?n++:(n>=5&&(r+=e+(n-5)),f=l,n=1),(l=data.get(col,c))===h?o++:(o>=5&&(r+=e+(o-5)),h=l,o=1)}n>=5&&(r+=e+(n-5)),o>=5&&(r+=e+(o-5))}return r},r.getPenaltyN2=function(data){for(var t=data.size,r=0,e=0;e<t-1;e++)for(var col=0;col<t-1;col++){var o=data.get(e,col)+data.get(e,col+1)+data.get(e+1,col)+data.get(e+1,col+1);4!==o&&0!==o||r++}return r*n},r.getPenaltyN3=function(data){for(var t=data.size,r=0,e=0,n=0,f=0;f<t;f++){e=n=0;for(var col=0;col<t;col++)e=e<<1&2047|data.get(f,col),col>=10&&(1488===e||93===e)&&r++,n=n<<1&2047|data.get(col,f),col>=10&&(1488===n||93===n)&&r++}return r*o},r.getPenaltyN4=function(data){for(var t=0,r=data.data.length,i=0;i<r;i++)t+=data.data[i];return Math.abs(Math.ceil(100*t/r/5)-10)*f},r.applyMask=function(pattern,data){for(var t=data.size,col=0;col<t;col++)for(var r=0;r<t;r++)data.isReserved(r,col)||data.xor(r,col,h(pattern,r,col))},r.getBestMask=function(data,t){for(var e=Object.keys(r.Patterns).length,n=0,o=1/0,p=0;p<e;p++){t(p),r.applyMask(p,data);var f=r.getPenaltyN1(data)+r.getPenaltyN2(data)+r.getPenaltyN3(data)+r.getPenaltyN4(data);r.applyMask(p,data),f<o&&(o=f,n=p)}return n}},1592:function(t,r,e){var n=e(1193),o=e(1593),f=e(1595).Buffer;function h(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}h.prototype.initialize=function(t){this.degree=t,this.genPoly=o.generateECPolynomial(this.degree)},h.prototype.encode=function(data){if(!this.genPoly)throw new Error("Encoder not initialized");var t=n.alloc(this.degree),r=f.concat([data,t],data.length+this.degree),e=o.mod(r,this.genPoly),h=this.degree-e.length;if(h>0){var c=n.alloc(this.degree);return e.copy(c,h),c}return e},t.exports=h},1593:function(t,r,e){var n=e(1193),o=e(1594);r.mul=function(t,r){for(var e=n.alloc(t.length+r.length-1),i=0;i<t.length;i++)for(var f=0;f<r.length;f++)e[i+f]^=o.mul(t[i],r[f]);return e},r.mod=function(t,r){for(var e=n.from(t);e.length-r.length>=0;){for(var f=e[0],i=0;i<r.length;i++)e[i]^=o.mul(r[i],f);for(var h=0;h<e.length&&0===e[h];)h++;e=e.slice(h)}return e},r.generateECPolynomial=function(t){for(var e=n.from([1]),i=0;i<t;i++)e=r.mul(e,[1,o.exp(i)]);return e}},1594:function(t,r,e){var n=e(1193),o=n.alloc(512),f=n.alloc(256);!function(){for(var t=1,i=0;i<255;i++)o[i]=t,f[t]=i,256&(t<<=1)&&(t^=285);for(i=255;i<512;i++)o[i]=o[i-255]}(),r.log=function(t){if(t<1)throw new Error("log("+t+")");return f[t]},r.exp=function(t){return o[t]},r.mul=function(t,r){return 0===t||0===r?0:o[f[t]+f[r]]}},1595:function(t,r,e){"use strict";(function(t){var n=e(1596),o=e(1597),f=e(1598);function h(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(t,r){if(h()<r)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(r)).__proto__=l.prototype:(null===t&&(t=new l(r)),t.length=r),t}function l(t,r,e){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(t,r,e);if("number"==typeof t){if("string"==typeof r)throw new Error("If encoding is specified then the first argument must be a string");return v(this,t)}return d(this,t,r,e)}function d(t,r,e,n){if("number"==typeof r)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&r instanceof ArrayBuffer?function(t,r,e,n){if(r.byteLength,e<0||r.byteLength<e)throw new RangeError("'offset' is out of bounds");if(r.byteLength<e+(n||0))throw new RangeError("'length' is out of bounds");r=void 0===e&&void 0===n?new Uint8Array(r):void 0===n?new Uint8Array(r,e):new Uint8Array(r,e,n);l.TYPED_ARRAY_SUPPORT?(t=r).__proto__=l.prototype:t=w(t,r);return t}(t,r,e,n):"string"==typeof r?function(t,r,e){"string"==typeof e&&""!==e||(e="utf8");if(!l.isEncoding(e))throw new TypeError('"encoding" must be a valid string encoding');var n=0|m(r,e),o=(t=c(t,n)).write(r,e);o!==n&&(t=t.slice(0,o));return t}(t,r,e):function(t,r){if(l.isBuffer(r)){var e=0|E(r.length);return 0===(t=c(t,e)).length||r.copy(t,0,0,e),t}if(r){if("undefined"!=typeof ArrayBuffer&&r.buffer instanceof ArrayBuffer||"length"in r)return"number"!=typeof r.length||(n=r.length)!=n?c(t,0):w(t,r);if("Buffer"===r.type&&f(r.data))return w(t,r.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,r)}function y(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function v(t,r){if(y(r),t=c(t,r<0?0:0|E(r)),!l.TYPED_ARRAY_SUPPORT)for(var i=0;i<r;++i)t[i]=0;return t}function w(t,r){var e=r.length<0?0:0|E(r.length);t=c(t,e);for(var i=0;i<e;i+=1)t[i]=255&r[i];return t}function E(t){if(t>=h())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+h().toString(16)+" bytes");return 0|t}function m(t,r){if(l.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var e=t.length;if(0===e)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":case void 0:return Q(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return $(t).length;default:if(n)return Q(t).length;r=(""+r).toLowerCase(),n=!0}}function A(t,r,e){var n=!1;if((void 0===r||r<0)&&(r=0),r>this.length)return"";if((void 0===e||e>this.length)&&(e=this.length),e<=0)return"";if((e>>>=0)<=(r>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return x(this,r,e);case"utf8":case"utf-8":return L(this,r,e);case"ascii":return N(this,r,e);case"latin1":case"binary":return Y(this,r,e);case"base64":return U(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function R(b,t,r){var i=b[t];b[t]=b[r],b[r]=i}function B(t,r,e,n,o){if(0===t.length)return-1;if("string"==typeof e?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,isNaN(e)&&(e=o?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(o)return-1;e=t.length-1}else if(e<0){if(!o)return-1;e=0}if("string"==typeof r&&(r=l.from(r,n)),l.isBuffer(r))return 0===r.length?-1:P(t,r,e,n,o);if("number"==typeof r)return r&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):P(t,[r],e,n,o);throw new TypeError("val must be string, number or Buffer")}function P(t,r,e,n,o){var i,f=1,h=t.length,c=r.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||r.length<2)return-1;f=2,h/=2,c/=2,e/=2}function l(t,i){return 1===f?t[i]:t.readUInt16BE(i*f)}if(o){var d=-1;for(i=e;i<h;i++)if(l(t,i)===l(r,-1===d?0:i-d)){if(-1===d&&(d=i),i-d+1===c)return d*f}else-1!==d&&(i-=i-d),d=-1}else for(e+c>h&&(e=h-c),i=e;i>=0;i--){for(var y=!0,v=0;v<c;v++)if(l(t,i+v)!==l(r,v)){y=!1;break}if(y)return i}return-1}function T(t,r,e,n){e=Number(e)||0;var o=t.length-e;n?(n=Number(n))>o&&(n=o):n=o;var f=r.length;if(f%2!=0)throw new TypeError("Invalid hex string");n>f/2&&(n=f/2);for(var i=0;i<n;++i){var h=parseInt(r.substr(2*i,2),16);if(isNaN(h))return i;t[e+i]=h}return i}function _(t,r,e,n){return X(Q(r,t.length-e),t,e,n)}function C(t,r,e,n){return X(function(t){for(var r=[],i=0;i<t.length;++i)r.push(255&t.charCodeAt(i));return r}(r),t,e,n)}function I(t,r,e,n){return C(t,r,e,n)}function S(t,r,e,n){return X($(r),t,e,n)}function M(t,r,e,n){return X(function(t,r){for(var e,n,o,f=[],i=0;i<t.length&&!((r-=2)<0);++i)e=t.charCodeAt(i),n=e>>8,o=e%256,f.push(o),f.push(n);return f}(r,t.length-e),t,e,n)}function U(t,r,e){return 0===r&&e===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(r,e))}function L(t,r,e){e=Math.min(t.length,e);for(var n=[],i=r;i<e;){var o,f,h,c,l=t[i],d=null,y=l>239?4:l>223?3:l>191?2:1;if(i+y<=e)switch(y){case 1:l<128&&(d=l);break;case 2:128==(192&(o=t[i+1]))&&(c=(31&l)<<6|63&o)>127&&(d=c);break;case 3:o=t[i+1],f=t[i+2],128==(192&o)&&128==(192&f)&&(c=(15&l)<<12|(63&o)<<6|63&f)>2047&&(c<55296||c>57343)&&(d=c);break;case 4:o=t[i+1],f=t[i+2],h=t[i+3],128==(192&o)&&128==(192&f)&&128==(192&h)&&(c=(15&l)<<18|(63&o)<<12|(63&f)<<6|63&h)>65535&&c<1114112&&(d=c)}null===d?(d=65533,y=1):d>65535&&(d-=65536,n.push(d>>>10&1023|55296),d=56320|1023&d),n.push(d),i+=y}return function(t){var r=t.length;if(r<=4096)return String.fromCharCode.apply(String,t);var e="",i=0;for(;i<r;)e+=String.fromCharCode.apply(String,t.slice(i,i+=4096));return e}(n)}r.Buffer=l,r.SlowBuffer=function(t){+t!=t&&(t=0);return l.alloc(+t)},r.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),r.kMaxLength=h(),l.poolSize=8192,l._augment=function(t){return t.__proto__=l.prototype,t},l.from=function(t,r,e){return d(null,t,r,e)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(t,r,e){return function(t,r,e,n){return y(r),r<=0?c(t,r):void 0!==e?"string"==typeof n?c(t,r).fill(e,n):c(t,r).fill(e):c(t,r)}(null,t,r,e)},l.allocUnsafe=function(t){return v(null,t)},l.allocUnsafeSlow=function(t){return v(null,t)},l.isBuffer=function(b){return!(null==b||!b._isBuffer)},l.compare=function(a,b){if(!l.isBuffer(a)||!l.isBuffer(b))throw new TypeError("Arguments must be Buffers");if(a===b)return 0;for(var t=a.length,r=b.length,i=0,e=Math.min(t,r);i<e;++i)if(a[i]!==b[i]){t=a[i],r=b[i];break}return t<r?-1:r<t?1:0},l.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(t,r){if(!f(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return l.alloc(0);var i;if(void 0===r)for(r=0,i=0;i<t.length;++i)r+=t[i].length;var e=l.allocUnsafe(r),n=0;for(i=0;i<t.length;++i){var o=t[i];if(!l.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(e,n),n+=o.length}return e},l.byteLength=m,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var i=0;i<t;i+=2)R(this,i,i+1);return this},l.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var i=0;i<t;i+=4)R(this,i,i+3),R(this,i+1,i+2);return this},l.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var i=0;i<t;i+=8)R(this,i,i+7),R(this,i+1,i+6),R(this,i+2,i+5),R(this,i+3,i+4);return this},l.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?L(this,0,t):A.apply(this,arguments)},l.prototype.equals=function(b){if(!l.isBuffer(b))throw new TypeError("Argument must be a Buffer");return this===b||0===l.compare(this,b)},l.prototype.inspect=function(){var t="",e=r.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,e).match(/.{2}/g).join(" "),this.length>e&&(t+=" ... ")),"<Buffer "+t+">"},l.prototype.compare=function(t,r,e,n,o){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===r&&(r=0),void 0===e&&(e=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),r<0||e>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&r>=e)return 0;if(n>=o)return-1;if(r>=e)return 1;if(this===t)return 0;for(var f=(o>>>=0)-(n>>>=0),h=(e>>>=0)-(r>>>=0),c=Math.min(f,h),d=this.slice(n,o),y=t.slice(r,e),i=0;i<c;++i)if(d[i]!==y[i]){f=d[i],h=y[i];break}return f<h?-1:h<f?1:0},l.prototype.includes=function(t,r,e){return-1!==this.indexOf(t,r,e)},l.prototype.indexOf=function(t,r,e){return B(this,t,r,e,!0)},l.prototype.lastIndexOf=function(t,r,e){return B(this,t,r,e,!1)},l.prototype.write=function(t,r,e,n){if(void 0===r)n="utf8",e=this.length,r=0;else if(void 0===e&&"string"==typeof r)n=r,e=this.length,r=0;else{if(!isFinite(r))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");r|=0,isFinite(e)?(e|=0,void 0===n&&(n="utf8")):(n=e,e=void 0)}var o=this.length-r;if((void 0===e||e>o)&&(e=o),t.length>0&&(e<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var f=!1;;)switch(n){case"hex":return T(this,t,r,e);case"utf8":case"utf-8":return _(this,t,r,e);case"ascii":return C(this,t,r,e);case"latin1":case"binary":return I(this,t,r,e);case"base64":return S(this,t,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,r,e);default:if(f)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),f=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function N(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(127&t[i]);return n}function Y(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]);return n}function x(t,r,e){var n=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>n)&&(e=n);for(var o="",i=r;i<e;++i)o+=V(t[i]);return o}function D(t,r,e){for(var n=t.slice(r,e),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function O(t,r,e){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+r>e)throw new RangeError("Trying to access beyond buffer length")}function k(t,r,e,n,o,f){if(!l.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>o||r<f)throw new RangeError('"value" argument is out of bounds');if(e+n>t.length)throw new RangeError("Index out of range")}function F(t,r,e,n){r<0&&(r=65535+r+1);for(var i=0,o=Math.min(t.length-e,2);i<o;++i)t[e+i]=(r&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function z(t,r,e,n){r<0&&(r=4294967295+r+1);for(var i=0,o=Math.min(t.length-e,4);i<o;++i)t[e+i]=r>>>8*(n?i:3-i)&255}function J(t,r,e,n,o,f){if(e+n>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function H(t,r,e,n,f){return f||J(t,0,e,4),o.write(t,r,e,n,23,4),e+4}function K(t,r,e,n,f){return f||J(t,0,e,8),o.write(t,r,e,n,52,8),e+8}l.prototype.slice=function(t,r){var e,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(r=void 0===r?n:~~r)<0?(r+=n)<0&&(r=0):r>n&&(r=n),r<t&&(r=t),l.TYPED_ARRAY_SUPPORT)(e=this.subarray(t,r)).__proto__=l.prototype;else{var o=r-t;e=new l(o,void 0);for(var i=0;i<o;++i)e[i]=this[i+t]}return e},l.prototype.readUIntLE=function(t,r,e){t|=0,r|=0,e||O(t,r,this.length);for(var n=this[t],o=1,i=0;++i<r&&(o*=256);)n+=this[t+i]*o;return n},l.prototype.readUIntBE=function(t,r,e){t|=0,r|=0,e||O(t,r,this.length);for(var n=this[t+--r],o=1;r>0&&(o*=256);)n+=this[t+--r]*o;return n},l.prototype.readUInt8=function(t,r){return r||O(t,1,this.length),this[t]},l.prototype.readUInt16LE=function(t,r){return r||O(t,2,this.length),this[t]|this[t+1]<<8},l.prototype.readUInt16BE=function(t,r){return r||O(t,2,this.length),this[t]<<8|this[t+1]},l.prototype.readUInt32LE=function(t,r){return r||O(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},l.prototype.readUInt32BE=function(t,r){return r||O(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},l.prototype.readIntLE=function(t,r,e){t|=0,r|=0,e||O(t,r,this.length);for(var n=this[t],o=1,i=0;++i<r&&(o*=256);)n+=this[t+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*r)),n},l.prototype.readIntBE=function(t,r,e){t|=0,r|=0,e||O(t,r,this.length);for(var i=r,n=1,o=this[t+--i];i>0&&(n*=256);)o+=this[t+--i]*n;return o>=(n*=128)&&(o-=Math.pow(2,8*r)),o},l.prototype.readInt8=function(t,r){return r||O(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,r){r||O(t,2,this.length);var e=this[t]|this[t+1]<<8;return 32768&e?4294901760|e:e},l.prototype.readInt16BE=function(t,r){r||O(t,2,this.length);var e=this[t+1]|this[t]<<8;return 32768&e?4294901760|e:e},l.prototype.readInt32LE=function(t,r){return r||O(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,r){return r||O(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readFloatLE=function(t,r){return r||O(t,4,this.length),o.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,r){return r||O(t,4,this.length),o.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,r){return r||O(t,8,this.length),o.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,r){return r||O(t,8,this.length),o.read(this,t,!1,52,8)},l.prototype.writeUIntLE=function(t,r,e,n){(t=+t,r|=0,e|=0,n)||k(this,t,r,e,Math.pow(2,8*e)-1,0);var o=1,i=0;for(this[r]=255&t;++i<e&&(o*=256);)this[r+i]=t/o&255;return r+e},l.prototype.writeUIntBE=function(t,r,e,n){(t=+t,r|=0,e|=0,n)||k(this,t,r,e,Math.pow(2,8*e)-1,0);var i=e-1,o=1;for(this[r+i]=255&t;--i>=0&&(o*=256);)this[r+i]=t/o&255;return r+e},l.prototype.writeUInt8=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,1,255,0),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[r]=255&t,r+1},l.prototype.writeUInt16LE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8):F(this,t,r,!0),r+2},l.prototype.writeUInt16BE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=255&t):F(this,t,r,!1),r+2},l.prototype.writeUInt32LE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=255&t):z(this,t,r,!0),r+4},l.prototype.writeUInt32BE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t):z(this,t,r,!1),r+4},l.prototype.writeIntLE=function(t,r,e,n){if(t=+t,r|=0,!n){var o=Math.pow(2,8*e-1);k(this,t,r,e,o-1,-o)}var i=0,f=1,sub=0;for(this[r]=255&t;++i<e&&(f*=256);)t<0&&0===sub&&0!==this[r+i-1]&&(sub=1),this[r+i]=(t/f>>0)-sub&255;return r+e},l.prototype.writeIntBE=function(t,r,e,n){if(t=+t,r|=0,!n){var o=Math.pow(2,8*e-1);k(this,t,r,e,o-1,-o)}var i=e-1,f=1,sub=0;for(this[r+i]=255&t;--i>=0&&(f*=256);)t<0&&0===sub&&0!==this[r+i+1]&&(sub=1),this[r+i]=(t/f>>0)-sub&255;return r+e},l.prototype.writeInt8=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,1,127,-128),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[r]=255&t,r+1},l.prototype.writeInt16LE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8):F(this,t,r,!0),r+2},l.prototype.writeInt16BE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=255&t):F(this,t,r,!1),r+2},l.prototype.writeInt32LE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24):z(this,t,r,!0),r+4},l.prototype.writeInt32BE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),l.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t):z(this,t,r,!1),r+4},l.prototype.writeFloatLE=function(t,r,e){return H(this,t,r,!0,e)},l.prototype.writeFloatBE=function(t,r,e){return H(this,t,r,!1,e)},l.prototype.writeDoubleLE=function(t,r,e){return K(this,t,r,!0,e)},l.prototype.writeDoubleBE=function(t,r,e){return K(this,t,r,!1,e)},l.prototype.copy=function(t,r,e,n){if(e||(e=0),n||0===n||(n=this.length),r>=t.length&&(r=t.length),r||(r=0),n>0&&n<e&&(n=e),n===e)return 0;if(0===t.length||0===this.length)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(e<0||e>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-r<n-e&&(n=t.length-r+e);var i,o=n-e;if(this===t&&e<r&&r<n)for(i=o-1;i>=0;--i)t[i+r]=this[i+e];else if(o<1e3||!l.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+r]=this[i+e];else Uint8Array.prototype.set.call(t,this.subarray(e,e+o),r);return o},l.prototype.fill=function(t,r,e,n){if("string"==typeof t){if("string"==typeof r?(n=r,r=0,e=this.length):"string"==typeof e&&(n=e,e=this.length),1===t.length){var code=t.charCodeAt(0);code<256&&(t=code)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!l.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(r<0||this.length<r||this.length<e)throw new RangeError("Out of range index");if(e<=r)return this;var i;if(r>>>=0,e=void 0===e?this.length:e>>>0,t||(t=0),"number"==typeof t)for(i=r;i<e;++i)this[i]=t;else{var o=l.isBuffer(t)?t:Q(new l(t,n).toString()),f=o.length;for(i=0;i<e-r;++i)this[i+r]=o[i%f]}return this};var j=/[^+\/0-9A-Za-z-_]/g;function V(t){return t<16?"0"+t.toString(16):t.toString(16)}function Q(t,r){var e;r=r||1/0;for(var n=t.length,o=null,f=[],i=0;i<n;++i){if((e=t.charCodeAt(i))>55295&&e<57344){if(!o){if(e>56319){(r-=3)>-1&&f.push(239,191,189);continue}if(i+1===n){(r-=3)>-1&&f.push(239,191,189);continue}o=e;continue}if(e<56320){(r-=3)>-1&&f.push(239,191,189),o=e;continue}e=65536+(o-55296<<10|e-56320)}else o&&(r-=3)>-1&&f.push(239,191,189);if(o=null,e<128){if((r-=1)<0)break;f.push(e)}else if(e<2048){if((r-=2)<0)break;f.push(e>>6|192,63&e|128)}else if(e<65536){if((r-=3)<0)break;f.push(e>>12|224,e>>6&63|128,63&e|128)}else{if(!(e<1114112))throw new Error("Invalid code point");if((r-=4)<0)break;f.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}}return f}function $(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(j,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function X(t,r,e,n){for(var i=0;i<n&&!(i+e>=r.length||i>=t.length);++i)r[i+e]=t[i];return i}}).call(this,e(82))},1596:function(t,r,e){"use strict";r.byteLength=function(t){var r=c(t),e=r[0],n=r[1];return 3*(e+n)/4-n},r.toByteArray=function(t){var r,i,e=c(t),n=e[0],h=e[1],l=new f(function(t,r,e){return 3*(r+e)/4-e}(0,n,h)),d=0,y=h>0?n-4:n;for(i=0;i<y;i+=4)r=o[t.charCodeAt(i)]<<18|o[t.charCodeAt(i+1)]<<12|o[t.charCodeAt(i+2)]<<6|o[t.charCodeAt(i+3)],l[d++]=r>>16&255,l[d++]=r>>8&255,l[d++]=255&r;2===h&&(r=o[t.charCodeAt(i)]<<2|o[t.charCodeAt(i+1)]>>4,l[d++]=255&r);1===h&&(r=o[t.charCodeAt(i)]<<10|o[t.charCodeAt(i+1)]<<4|o[t.charCodeAt(i+2)]>>2,l[d++]=r>>8&255,l[d++]=255&r);return l},r.fromByteArray=function(t){for(var r,e=t.length,o=e%3,f=[],i=0,h=e-o;i<h;i+=16383)f.push(l(t,i,i+16383>h?h:i+16383));1===o?(r=t[e-1],f.push(n[r>>2]+n[r<<4&63]+"==")):2===o&&(r=(t[e-2]<<8)+t[e-1],f.push(n[r>>10]+n[r>>4&63]+n[r<<2&63]+"="));return f.join("")};for(var n=[],o=[],f="undefined"!=typeof Uint8Array?Uint8Array:Array,code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,h=code.length;i<h;++i)n[i]=code[i],o[code.charCodeAt(i)]=i;function c(t){var r=t.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var e=t.indexOf("=");return-1===e&&(e=r),[e,e===r?0:4-e%4]}function l(t,r,e){for(var o,f,output=[],i=r;i<e;i+=3)o=(t[i]<<16&16711680)+(t[i+1]<<8&65280)+(255&t[i+2]),output.push(n[(f=o)>>18&63]+n[f>>12&63]+n[f>>6&63]+n[63&f]);return output.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},1597:function(t,r){r.read=function(t,r,e,n,o){var f,h,c=8*o-n-1,l=(1<<c)-1,d=l>>1,y=-7,i=e?o-1:0,v=e?-1:1,s=t[r+i];for(i+=v,f=s&(1<<-y)-1,s>>=-y,y+=c;y>0;f=256*f+t[r+i],i+=v,y-=8);for(h=f&(1<<-y)-1,f>>=-y,y+=n;y>0;h=256*h+t[r+i],i+=v,y-=8);if(0===f)f=1-d;else{if(f===l)return h?NaN:1/0*(s?-1:1);h+=Math.pow(2,n),f-=d}return(s?-1:1)*h*Math.pow(2,f-n)},r.write=function(t,r,e,n,o,f){var h,c,l,d=8*f-o-1,y=(1<<d)-1,v=y>>1,rt=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,i=n?0:f-1,w=n?1:-1,s=r<0||0===r&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(c=isNaN(r)?1:0,h=y):(h=Math.floor(Math.log(r)/Math.LN2),r*(l=Math.pow(2,-h))<1&&(h--,l*=2),(r+=h+v>=1?rt/l:rt*Math.pow(2,1-v))*l>=2&&(h++,l/=2),h+v>=y?(c=0,h=y):h+v>=1?(c=(r*l-1)*Math.pow(2,o),h+=v):(c=r*Math.pow(2,v-1)*Math.pow(2,o),h=0));o>=8;t[e+i]=255&c,i+=w,c/=256,o-=8);for(h=h<<o|c,d+=o;d>0;t[e+i]=255&h,i+=w,h/=256,d-=8);t[e+i-w]|=128*s}},1598:function(t,r){var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},1599:function(t,r,e){var n=e(1190),o=e(1390),f=e(1375),h=e(1191),c=e(1391),l=e(1374),d=n.getBCHDigit(7973);function y(t,r){return h.getCharCountIndicator(t,r)+4}function v(t,r){var e=0;return t.forEach((function(data){var t=y(data.mode,r);e+=t+data.getBitsLength()})),e}r.from=function(t,r){return c.isValid(t)?parseInt(t,10):r},r.getCapacity=function(t,r,e){if(!c.isValid(t))throw new Error("Invalid QR Code version");void 0===e&&(e=h.BYTE);var f=8*(n.getSymbolTotalCodewords(t)-o.getTotalCodewordsCount(t,r));if(e===h.MIXED)return f;var l=f-y(e,t);switch(e){case h.NUMERIC:return Math.floor(l/10*3);case h.ALPHANUMERIC:return Math.floor(l/11*2);case h.KANJI:return Math.floor(l/13);case h.BYTE:default:return Math.floor(l/8)}},r.getBestVersionForData=function(data,t){var e,n=f.from(t,f.M);if(l(data)){if(data.length>1)return function(t,e){for(var n=1;n<=40;n++){if(v(t,n)<=r.getCapacity(n,e,h.MIXED))return n}}(data,n);if(0===data.length)return 1;e=data[0]}else e=data;return function(t,e,n){for(var o=1;o<=40;o++)if(e<=r.getCapacity(o,n,t))return o}(e.mode,e.getLength(),n)},r.getEncodedBits=function(t){if(!c.isValid(t)||t<7)throw new Error("Invalid QR Code version");for(var r=t<<12;n.getBCHDigit(r)-d>=0;)r^=7973<<n.getBCHDigit(r)-d;return t<<12|r}},1600:function(t,r,e){var n=e(1190),o=n.getBCHDigit(1335);r.getEncodedBits=function(t,mask){for(var data=t.bit<<3|mask,r=data<<10;n.getBCHDigit(r)-o>=0;)r^=1335<<n.getBCHDigit(r)-o;return 21522^(data<<10|r)}},1601:function(t,r,e){var n=e(1191),o=e(1602),f=e(1603),h=e(1604),c=e(1605),l=e(1392),d=e(1190),y=e(1606);function v(t){return unescape(encodeURIComponent(t)).length}function w(t,r,e){for(var n,o=[];null!==(n=t.exec(e));)o.push({data:n[0],index:n.index,mode:r,length:n[0].length});return o}function E(t){var r,e,o=w(l.NUMERIC,n.NUMERIC,t),f=w(l.ALPHANUMERIC,n.ALPHANUMERIC,t);return d.isKanjiModeEnabled()?(r=w(l.BYTE,n.BYTE,t),e=w(l.KANJI,n.KANJI,t)):(r=w(l.BYTE_KANJI,n.BYTE,t),e=[]),o.concat(f,r,e).sort((function(t,r){return t.index-r.index})).map((function(t){return{data:t.data,mode:t.mode,length:t.length}}))}function m(t,r){switch(r){case n.NUMERIC:return o.getBitsLength(t);case n.ALPHANUMERIC:return f.getBitsLength(t);case n.KANJI:return c.getBitsLength(t);case n.BYTE:return h.getBitsLength(t)}}function A(data,t){var r,e=n.getBestModeForData(data);if((r=n.from(t,e))!==n.BYTE&&r.bit<e.bit)throw new Error('"'+data+'" cannot be encoded with mode '+n.toString(r)+".\n Suggested mode is: "+n.toString(e));switch(r!==n.KANJI||d.isKanjiModeEnabled()||(r=n.BYTE),r){case n.NUMERIC:return new o(data);case n.ALPHANUMERIC:return new f(data);case n.KANJI:return new c(data);case n.BYTE:return new h(data)}}r.fromArray=function(t){return t.reduce((function(t,r){return"string"==typeof r?t.push(A(r,null)):r.data&&t.push(A(r.data,r.mode)),t}),[])},r.fromString=function(data,t){for(var e=function(t,r){for(var table={},e={start:{}},o=["start"],i=0;i<t.length;i++){for(var f=t[i],h=[],c=0;c<f.length;c++){var l=f[c],d=""+i+c;h.push(d),table[d]={node:l,lastCount:0},e[d]={};for(var y=0;y<o.length;y++){var v=o[y];table[v]&&table[v].node.mode===l.mode?(e[v][d]=m(table[v].lastCount+l.length,l.mode)-m(table[v].lastCount,l.mode),table[v].lastCount+=l.length):(table[v]&&(table[v].lastCount=l.length),e[v][d]=m(l.length,l.mode)+4+n.getCharCountIndicator(l.mode,r))}}o=h}for(y=0;y<o.length;y++)e[o[y]].end=0;return{map:e,table:table}}(function(t){for(var r=[],i=0;i<t.length;i++){var e=t[i];switch(e.mode){case n.NUMERIC:r.push([e,{data:e.data,mode:n.ALPHANUMERIC,length:e.length},{data:e.data,mode:n.BYTE,length:e.length}]);break;case n.ALPHANUMERIC:r.push([e,{data:e.data,mode:n.BYTE,length:e.length}]);break;case n.KANJI:r.push([e,{data:e.data,mode:n.BYTE,length:v(e.data)}]);break;case n.BYTE:r.push([{data:e.data,mode:n.BYTE,length:v(e.data)}])}}return r}(E(data,d.isKanjiModeEnabled())),t),path=y.find_path(e.map,"start","end"),o=[],i=1;i<path.length-1;i++)o.push(e.table[path[i]].node);return r.fromArray(function(t){return t.reduce((function(t,r){var e=t.length-1>=0?t[t.length-1]:null;return e&&e.mode===r.mode?(t[t.length-1].data+=r.data,t):(t.push(r),t)}),[])}(o))},r.rawSplit=function(data){return r.fromArray(E(data,d.isKanjiModeEnabled()))}},1602:function(t,r,e){var n=e(1191);function o(data){this.mode=n.NUMERIC,this.data=data.toString()}o.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(t){var i,r,e;for(i=0;i+3<=this.data.length;i+=3)r=this.data.substr(i,3),e=parseInt(r,10),t.put(e,10);var n=this.data.length-i;n>0&&(r=this.data.substr(i),e=parseInt(r,10),t.put(e,3*n+1))},t.exports=o},1603:function(t,r,e){var n=e(1191),o=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function f(data){this.mode=n.ALPHANUMERIC,this.data=data}f.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},f.prototype.getLength=function(){return this.data.length},f.prototype.getBitsLength=function(){return f.getBitsLength(this.data.length)},f.prototype.write=function(t){var i;for(i=0;i+2<=this.data.length;i+=2){var r=45*o.indexOf(this.data[i]);r+=o.indexOf(this.data[i+1]),t.put(r,11)}this.data.length%2&&t.put(o.indexOf(this.data[i]),6)},t.exports=f},1604:function(t,r,e){var n=e(1193),o=e(1191);function f(data){this.mode=o.BYTE,this.data=n.from(data)}f.getBitsLength=function(t){return 8*t},f.prototype.getLength=function(){return this.data.length},f.prototype.getBitsLength=function(){return f.getBitsLength(this.data.length)},f.prototype.write=function(t){for(var i=0,r=this.data.length;i<r;i++)t.put(this.data[i],8)},t.exports=f},1605:function(t,r,e){var n=e(1191),o=e(1190);function f(data){this.mode=n.KANJI,this.data=data}f.getBitsLength=function(t){return 13*t},f.prototype.getLength=function(){return this.data.length},f.prototype.getBitsLength=function(){return f.getBitsLength(this.data.length)},f.prototype.write=function(t){var i;for(i=0;i<this.data.length;i++){var r=o.toSJIS(this.data[i]);if(r>=33088&&r<=40956)r-=33088;else{if(!(r>=57408&&r<=60351))throw new Error("Invalid SJIS character: "+this.data[i]+"\nMake sure your charset is UTF-8");r-=49472}r=192*(r>>>8&255)+(255&r),t.put(r,13)}},t.exports=f},1606:function(t,r,e){"use strict";var n={single_source_shortest_paths:function(t,s,r){var e={},o={};o[s]=0;var f,u,h,c,l,d,y,v=n.PriorityQueue.make();for(v.push(s,0);!v.empty();)for(h in u=(f=v.pop()).value,c=f.cost,l=t[u]||{})l.hasOwnProperty(h)&&(d=c+l[h],y=o[h],(void 0===o[h]||y>d)&&(o[h]=d,v.push(h,d),e[h]=u));if(void 0!==r&&void 0===o[r]){var w=["Could not find a path from ",s," to ",r,"."].join("");throw new Error(w)}return e},extract_shortest_path_from_predecessor_list:function(t,r){for(var e=[],u=r;u;)e.push(u),t[u],u=t[u];return e.reverse(),e},find_path:function(t,s,r){var e=n.single_source_shortest_paths(t,s,r);return n.extract_shortest_path_from_predecessor_list(e,r)},PriorityQueue:{make:function(t){var r,e=n.PriorityQueue,o={};for(r in t=t||{},e)e.hasOwnProperty(r)&&(o[r]=e[r]);return o.queue=[],o.sorter=t.sorter||e.default_sorter,o},default_sorter:function(a,b){return a.cost-b.cost},push:function(t,r){var e={value:t,cost:r};this.queue.push(e),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=n},1607:function(t,r,e){var n=e(1393);r.render=function(t,canvas,r){var e=r,o=canvas;void 0!==e||canvas&&canvas.getContext||(e=canvas,canvas=void 0),canvas||(o=function(){try{return document.createElement("canvas")}catch(t){throw new Error("You need to specify a canvas element")}}()),e=n.getOptions(e);var f=n.getImageWidth(t.modules.size,e),h=o.getContext("2d"),image=h.createImageData(f,f);return n.qrToImageData(image.data,t,e),function(t,canvas,r){t.clearRect(0,0,canvas.width,canvas.height),canvas.style||(canvas.style={}),canvas.height=r,canvas.width=r,canvas.style.height=r+"px",canvas.style.width=r+"px"}(h,o,f),h.putImageData(image,0,0),o},r.renderToDataURL=function(t,canvas,e){var n=e;void 0!==n||canvas&&canvas.getContext||(n=canvas,canvas=void 0),n||(n={});var o=r.render(t,canvas,n),f=n.type||"image/png",h=n.rendererOpts||{};return o.toDataURL(f,h.quality)}},1608:function(t,r,e){var n=e(1393);function o(t,r){var e=t.a/255,n=r+'="'+t.hex+'"';return e<1?n+" "+r+'-opacity="'+e.toFixed(2).slice(1)+'"':n}function f(t,r,e){var n=t+r;return void 0!==e&&(n+=" "+e),n}r.render=function(t,r,e){var h=n.getOptions(r),c=t.modules.size,data=t.modules.data,l=c+2*h.margin,d=h.color.light.a?"<path "+o(h.color.light,"fill")+' d="M0 0h'+l+"v"+l+'H0z"/>':"",path="<path "+o(h.color.dark,"stroke")+' d="'+function(data,t,r){for(var path="",e=0,n=!1,o=0,i=0;i<data.length;i++){var col=Math.floor(i%t),h=Math.floor(i/t);col||n||(n=!0),data[i]?(o++,i>0&&col>0&&data[i-1]||(path+=n?f("M",col+r,.5+h+r):f("m",e,0),e=0,n=!1),col+1<t&&data[i+1]||(path+=f("h",o),o=0)):e++}return path}(data,c,h.margin)+'"/>',y='viewBox="0 0 '+l+" "+l+'"',v='<svg xmlns="http://www.w3.org/2000/svg" '+(h.width?'width="'+h.width+'" height="'+h.width+'" ':"")+y+' shape-rendering="crispEdges">'+d+path+"</svg>\n";return"function"==typeof e&&e(null,v),v}}}]);