function _iterableToArrayLimit(t,e){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var r,i,n,a,s=[],l=!0,u=!1;try{if(n=(o=o.call(t)).next,0===e){if(Object(o)!==o)return;l=!1}else for(;!(l=(r=n.call(o)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=o.return&&(a=o.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function ownKeys(e,t){var o,r=Object.keys(e);return Object.getOwnPropertySymbols&&(o=Object.getOwnPropertySymbols(e),t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,o)),r}function _objectSpread2(e){for(var t=1;tt.length)&&(e=t.length);for(var o=0,r=new Array(e);o>>18,n[1]=128|(258048&a)>>>12,n[2]=128|(4032&a)>>>6,n[3]=128|63&a):2048>>12,n[1]=128|(4032&a)>>>6,n[2]=128|63&a):128>>6,n[1]=128|63&a):n[0]=a,this.parsedData.push(n)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),o||this.parsedData.length==this.data.length||(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}function l(t,e){this.typeNumber=t,this.errorCorrectLevel=e,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}n.prototype={getLength:function(t){return this.parsedData.length},write:function(t){for(var e=0,o=this.parsedData.length;e>o&1);this.modules[Math.floor(o/3)][o%3+this.moduleCount-8-3][0]=r}for(o=0;o<18;o++){r=!t&&1==(e>>o&1);this.modules[o%3+this.moduleCount-8-3][Math.floor(o/3)][0]=r}},setupTypeInfo:function(t,e){for(var e=this.errorCorrectLevel<<3|e,o=v.getBCHTypeInfo(e),r=0;r<15;r++){var i=!t&&1==(o>>r&1);r<6?this.modules[r][8][0]=i:r<8?this.modules[r+1][8][0]=i:this.modules[this.moduleCount-15+r][8][0]=i}for(r=0;r<15;r++){i=!t&&1==(o>>r&1);r<8?this.modules[8][this.moduleCount-r-1][0]=i:r<9?this.modules[8][15-r-1+1][0]=i:this.modules[8][15-r-1][0]=i}this.modules[this.moduleCount-8][8][0]=!t},mapData:function(t,e){for(var o=-1,r=this.moduleCount-1,i=7,n=0,a=this.moduleCount-1;0>>i&1)),l=v.getMask(e,r,a-u),this.modules[r][a-u][0]=s=l?!s:s,-1==--i)&&(n++,i=7);if((r+=o)<0||this.moduleCount<=r){r-=o,o=-o;break}}}},l.PAD0=236,l.PAD1=17,l.createData=function(t,e,o){for(var r=A.getRSBlocks(t,e),i=new C,n=0;n8*s)throw new Error("code length overflow. ("+i.getLengthInBits()+">"+8*s+")");for(i.getLengthInBits()+4<=8*s&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(!1);for(;;){if(i.getLengthInBits()>=8*s)break;if(i.put(l.PAD0,8),i.getLengthInBits()>=8*s)break;i.put(l.PAD1,8)}return l.createBytes(i,r)},l.createBytes=function(t,e){for(var o=0,r=0,i=0,n=new Array(e.length),a=new Array(e.length),s=0;s>>=1;return e},getPatternPosition:function(t){return v.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,o){switch(t){case a:return(e+o)%2==0;case d:return e%2==0;case c:return o%3==0;case g:return(e+o)%3==0;case p:return(Math.floor(e/2)+Math.floor(o/3))%2==0;case f:return e*o%2+e*o%3==0;case m:return(e*o%2+e*o%3)%2==0;case _:return(e*o%3+(e+o)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new S([1],0),o=0;o>>7-t%8&1)},put:function(t,e){for(var o=0;o>>e-o-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var w=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function L(){var t=!1,e=navigator.userAgent;return t=/android/i.test(e)&&(t=!0,e=e.toString().match(/android ([0-9]\.[0-9])/i))&&e[1]?parseFloat(e[1]):t}var O="undefined"==typeof CanvasRenderingContext2D?(k.prototype.draw=function(t){var e=this._htOption,o=this._el,r=t.getModuleCount(),i=Math.round(e.width/r),n=Math.round((e.height-e.titleHeight)/r),a=(n<=1&&(n=1),this._htOption.width=(i=i<=1?1:i)*r,this._htOption.height=n*r+e.titleHeight,this._htOption.quietZone=Math.round(this._htOption.quietZone),[]),s="",l=Math.round(i*e.dotScale),u=Math.round(n*e.dotScale),h=(l<4&&(u=l=4),e.colorDark),d=e.colorLight;e.backgroundImage&&(e.autoColor?(e.colorDark="rgba(0, 0, 0, .6);filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr='#99000000', EndColorStr='#99000000');",e.colorLight="rgba(255, 255, 255, .7);filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr='#B2FFFFFF', EndColorStr='#B2FFFFFF');"):e.colorLight="rgba(0,0,0,0)",_='
',a.push(_)),e.quietZone&&(s="display:inline-block; width:"+(e.width+2*e.quietZone)+"px; height:"+(e.width+2*e.quietZone)+"px;background:"+e.quietZoneColor+"; text-align:center;"),a.push('
'),a.push(''),a.push('");for(var c=0;c');for(var g=0;g')):(f=e.colorDark,6==c?(f=e.timing_H||e.timing||h,a.push('')):6==g?(f=e.timing_V||e.timing||h,a.push('')):a.push(''))}a.push("")}a.push("
'),e.title&&(_=e.titleColor,s=e.titleFont,a.push('
'+e.title+"
")),e.subTitle&&a.push('
'+e.subTitle+"
"),a.push("
"),a.push("
"),e.logo&&(_=new Image,null!=e.crossOrigin&&(_.crossOrigin=e.crossOrigin),_.src=e.logo,(s=e.width/3.5)!=(_=e.height/3.5)&&(s=_),e.logoWidth&&(s=e.logoWidth),e.logoHeight&&(_=e.logoHeight),m="position:relative; z-index:1;display:table-cell;top:-"+((e.height-e.titleHeight)/2+_/2+e.quietZone)+"px;text-align:center; width:"+s+"px; height:"+_+"px;line-height:"+s+"px; vertical-align: middle;",e.logoBackgroundTransparent||(m+="background:"+e.logoBackgroundColor),a.push('
')),e.onRenderingStart&&e.onRenderingStart(e),o.innerHTML=a.join("");var m=o.childNodes[0],s=(e.width-m.offsetWidth)/2,_=(e.height-m.offsetHeight)/2;0