(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["operation-event_promotion-advertise-advertise~operation-pay_bill-index~other-page-supplier-order-sup~b62a43ee"],{1851:function(o,e,t){"use strict";var r=t("8bdb"),n=t("84d6"),i=t("1cb5");r({target:"Array",proto:!0},{fill:n}),i("fill")},"5a06":function(o,e,t){"use strict";function r(){var o=this.waitingQueue=[],e=this.isRunning=!1;this.exec=function(t){return new Promise((function(r,n){e?o.push({task:t,resolve:r,reject:n}):(e=!0,function t(r,n,i){r().then((function(o){n(o)})).catch((function(o){i(o)})).finally((function(){if(o.length){var r=o.shift();t(r.task,r.resolve,r.reject)}else e=!1}))}(t,r,n))}))}}t("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.queueLoadImage=e.queueDraw=void 0,t("bf0f"),t("5c47"),t("aa9c");var n=new r;e.queueDraw=n;var i=new r;e.queueLoadImage=i},"5d65":function(o,e,t){"use strict";t("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.cacheImageList=void 0;e.cacheImageList=[]},dad0:function(o,e,t){"use strict";t("6a54");var r=t("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=C;var n=r(t("2634")),i=r(t("2fdc")),a=r(t("9b1b"));function u(o){this.mode=s.MODE_8BIT_BYTE,this.data=o}function d(o,e){this.typeNumber=o,this.errorCorrectLevel=e,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=new Array}t("aa9c"),t("7a76"),t("c9b5"),t("a03a"),t("64aa"),t("bf0f"),t("2797"),t("dc8a"),t("ab80"),t("4626"),t("5ac7"),t("1851"),u.prototype={getLength:function(o){return this.data.length},write:function(o){for(var e=0;e=7&&this.setupTypeNumber(o),null==this.dataCache&&(this.dataCache=d.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)},setupPositionProbePattern:function(o,e){for(var t=-1;t<=7;t++)if(!(o+t<=-1||this.moduleCount<=o+t))for(var r=-1;r<=7;r++)e+r<=-1||this.moduleCount<=e+r||(this.modules[o+t][e+r]=0<=t&&t<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==t||6==t)||2<=t&&t<=4&&2<=r&&r<=4)},getBestMaskPattern:function(){for(var o=0,e=0,t=0;t<8;t++){this.makeImpl(!0,t);var r=l.getLostPoint(this);(0==t||o>r)&&(o=r,e=t)}return e},createMovieClip:function(o,e,t){var r=o.createEmptyMovieClip(e,t);this.make();for(var n=0;n>t&1);this.modules[Math.floor(t/3)][t%3+this.moduleCount-8-3]=r}for(t=0;t<18;t++)r=!o&&1==(e>>t&1),this.modules[t%3+this.moduleCount-8-3][Math.floor(t/3)]=r},setupTypeInfo:function(o,e){for(var t=this.errorCorrectLevel<<3|e,r=l.getBCHTypeInfo(t),n=0;n<15;n++){var i=!o&&1==(r>>n&1);n<6?this.modules[n][8]=i:n<8?this.modules[n+1][8]=i:this.modules[this.moduleCount-15+n][8]=i}for(n=0;n<15;n++)i=!o&&1==(r>>n&1),n<8?this.modules[8][this.moduleCount-n-1]=i:n<9?this.modules[8][15-n-1+1]=i:this.modules[8][15-n-1]=i;this.modules[this.moduleCount-8][8]=!o},mapData:function(o,e){for(var t=-1,r=this.moduleCount-1,n=7,i=0,a=this.moduleCount-1;a>0;a-=2)for(6==a&&a--;;){for(var u=0;u<2;u++)if(null==this.modules[r][a-u]){var d=!1;i>>n&1)),l.getMask(e,r,a-u)&&(d=!d),this.modules[r][a-u]=d,-1==--n&&(i++,n=7)}if((r+=t)<0||this.moduleCount<=r){r-=t,t=-t;break}}}},d.PAD0=236,d.PAD1=17,d.createData=function(o,e,t){for(var r=m.getRSBlocks(o,e),n=new v,i=0;i8*u)throw new Error("code length overflow. ("+n.getLengthInBits()+">"+8*u+")");for(n.getLengthInBits()+4<=8*u&&n.put(0,4);n.getLengthInBits()%8!=0;)n.putBit(!1);for(;!(n.getLengthInBits()>=8*u||(n.put(d.PAD0,8),n.getLengthInBits()>=8*u));)n.put(d.PAD1,8);return d.createBytes(n,r)},d.createBytes=function(o,e){for(var t=0,r=0,n=0,i=new Array(e.length),a=new Array(e.length),u=0;u=0?c.get(m):0}}var v=0;for(g=0;g=0;)e^=l.G15<=0;)e^=l.G18<>>=1;return e},getPatternPosition:function(o){return l.PATTERN_POSITION_TABLE[o-1]},getMask:function(o,e,t){switch(o){case 0:return(e+t)%2==0;case 1:return e%2==0;case 2:return t%3==0;case 3:return(e+t)%3==0;case 4:return(Math.floor(e/2)+Math.floor(t/3))%2==0;case 5:return e*t%2+e*t%3==0;case 6:return(e*t%2+e*t%3)%2==0;case 7:return(e*t%3+(e+t)%2)%2==0;default:throw new Error("bad maskPattern:"+o)}},getErrorCorrectPolynomial:function(o){for(var e=new f([1],0),t=0;t5&&(t+=3+i-5)}for(r=0;r=256;)o-=255;return h.EXP_TABLE[o]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},c=0;c<8;c++)h.EXP_TABLE[c]=1<1?1:o<0?0:o}},foregroundImageWidth:{get:function(){return void 0===h?(this.dynamicSize-2*this.margin)/4:this.useDynamicSize?this.dynamicSize/this.size*h:h},set:function(o){h=Number(o)}},foregroundImageHeight:{get:function(){return void 0===c?(this.dynamicSize-2*this.margin)/4:this.useDynamicSize?this.dynamicSize/this.size*c:c},set:function(o){c=Number(o)}},foregroundImageX:{get:function(){return void 0===f?this.dynamicSize/2-this.foregroundImageWidth/2:this.useDynamicSize?this.dynamicSize/this.size*f:f},set:function(o){f=Number(o)}},foregroundImageY:{get:function(){return void 0===m?this.dynamicSize/2-this.foregroundImageHeight/2:this.useDynamicSize?this.dynamicSize/this.size*m:m},set:function(o){m=Number(o)}},foregroundImagePadding:{get:function(){return this.useDynamicSize?this.dynamicSize/this.size*v:v},set:function(o){v=Number(o)}},foregroundImageBorderRadius:{get:function(){return this.useDynamicSize?this.dynamicSize/this.size*b:b},set:function(o){b=Number(o)}},foregroundImageShadowOffsetX:{get:function(){return this.useDynamicSize?this.dynamicSize/this.size*k:k},set:function(o){k=Number(o)}},foregroundImageShadowOffsetY:{get:function(){return this.useDynamicSize?this.dynamicSize/this.size*y:y},set:function(o){y=Number(o)}},foregroundImageShadowBlur:{get:function(){return this.useDynamicSize?this.dynamicSize/this.size*w:w},set:function(o){w=Number(o)}},foregroundPadding:{get:function(){return I},set:function(o){I=o>1?1:o<0?0:o}},positionProbeBackgroundColor:{get:function(){return B||this.backgroundColor},set:function(o){B=o}},positionProbeForegroundColor:{get:function(){return S||this.foregroundColor},set:function(o){S=o}},separatorColor:{get:function(){return P||this.backgroundColor},set:function(o){P=o}},positionAdjustBackgroundColor:{get:function(){return L||this.backgroundColor},set:function(o){L=o}},positionAdjustForegroundColor:{get:function(){return D||this.foregroundColor},set:function(o){D=o}},timingBackgroundColor:{get:function(){return A||this.backgroundColor},set:function(o){A=o}},timingForegroundColor:{get:function(){return E||this.foregroundColor},set:function(o){E=o}},typeNumberBackgroundColor:{get:function(){return T||this.backgroundColor},set:function(o){T=o}},typeNumberForegroundColor:{get:function(){return M||this.foregroundColor},set:function(o){M=o}},darkBlockColor:{get:function(){return N||this.foregroundColor},set:function(o){N=o}},canvasContext:{get:function(){if(void 0===z)throw console.error("[uQRCode]: use drawCanvas, you need to set the canvasContext!"),new C.Error("use drawCanvas, you need to set the canvasContext!");return z},set:function(o){z=p(o)}}}),C.plugins.forEach((function(o){return o(C,t,!1)})),o&&this.setOptions(o),e&&(this.canvasContext=p(e))}f.prototype={get:function(o){return this.num[o]},getLength:function(){return this.num.length},multiply:function(o){for(var e=new Array(this.getLength()+o.getLength()-1),t=0;t>>7-o%8&1)},put:function(o,e){for(var t=0;t>>e-t-1&1))},getLengthInBits:function(){return this.length},putBit:function(o){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),o&&(this.buffer[e]|=128>>>this.length%8),this.length++}},d.errorCorrectLevel=g,C.errorCorrectLevel=d.errorCorrectLevel,C.Error=function(o){this.errMsg="[uQRCode]: "+o},C.plugins=[],C.use=function(o){"function"==typeof o&&C.plugins.push(o)},C.prototype.loadImage=function(o){return Promise.resolve(o)},C.prototype.setOptions=function(o){var e,t,r,n,i,u,d,s,g,l,h,c,f,m,v,p,C,b,k,y,w,I,B,S,P,L,D,A,E,T,M,N,z,_,x,O,R,F,H,X,Y,j,W,G,K,Q,U,J,q,V,Z,$,oo,eo,to,ro,no=this;o&&(Object.keys(o).forEach((function(e){no[e]=o[e]})),function(){var o,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(var n in o=r?e:(0,a.default)({},e),t){var i=t[n];null!=i&&(i.constructor==Object?o[n]=this.deepReplace(o[n],i):i.constructor!=String||i?o[n]=i:o[n]=o[n])}}(this,{data:o.data||o.text,size:o.size,useDynamicSize:o.useDynamicSize,typeNumber:o.typeNumber,errorCorrectLevel:o.errorCorrectLevel,margin:o.margin,areaColor:o.areaColor,backgroundColor:o.backgroundColor||(null===(e=o.background)||void 0===e?void 0:e.color),backgroundImageSrc:o.backgroundImageSrc||(null===(t=o.background)||void 0===t||null===(r=t.image)||void 0===r?void 0:r.src),backgroundImageWidth:o.backgroundImageWidth||(null===(n=o.background)||void 0===n||null===(i=n.image)||void 0===i?void 0:i.width),backgroundImageHeight:o.backgroundImageHeight||(null===(u=o.background)||void 0===u||null===(d=u.image)||void 0===d?void 0:d.height),backgroundImageX:o.backgroundImageX||(null===(s=o.background)||void 0===s||null===(g=s.image)||void 0===g?void 0:g.x),backgroundImageY:o.backgroundImageY||(null===(l=o.background)||void 0===l||null===(h=l.image)||void 0===h?void 0:h.y),backgroundImageAlpha:o.backgroundImageAlpha||(null===(c=o.background)||void 0===c||null===(f=c.image)||void 0===f?void 0:f.alpha),backgroundImageBorderRadius:o.backgroundImageBorderRadius||(null===(m=o.background)||void 0===m||null===(v=m.image)||void 0===v?void 0:v.borderRadius),backgroundPadding:o.backgroundPadding,foregroundColor:o.foregroundColor||(null===(p=o.foreground)||void 0===p?void 0:p.color),foregroundImageSrc:o.foregroundImageSrc||(null===(C=o.foreground)||void 0===C||null===(b=C.image)||void 0===b?void 0:b.src),foregroundImageWidth:o.foregroundImageWidth||(null===(k=o.foreground)||void 0===k||null===(y=k.image)||void 0===y?void 0:y.width),foregroundImageHeight:o.foregroundImageHeight||(null===(w=o.foreground)||void 0===w||null===(I=w.image)||void 0===I?void 0:I.height),foregroundImageX:o.foregroundImageX||(null===(B=o.foreground)||void 0===B||null===(S=B.image)||void 0===S?void 0:S.x),foregroundImageY:o.foregroundImageY||(null===(P=o.foreground)||void 0===P||null===(L=P.image)||void 0===L?void 0:L.y),foregroundImagePadding:o.foregroundImagePadding||(null===(D=o.foreground)||void 0===D||null===(A=D.image)||void 0===A?void 0:A.padding),foregroundImageBackgroundColor:o.foregroundImageBackgroundColor||(null===(E=o.foreground)||void 0===E||null===(T=E.image)||void 0===T?void 0:T.backgroundColor),foregroundImageBorderRadius:o.foregroundImageBorderRadius||(null===(M=o.foreground)||void 0===M||null===(N=M.image)||void 0===N?void 0:N.borderRadius),foregroundImageShadowOffsetX:o.foregroundImageShadowOffsetX||(null===(z=o.foreground)||void 0===z||null===(_=z.image)||void 0===_?void 0:_.shadowOffsetX),foregroundImageShadowOffsetY:o.foregroundImageShadowOffsetY||(null===(x=o.foreground)||void 0===x||null===(O=x.image)||void 0===O?void 0:O.shadowOffsetY),foregroundImageShadowBlur:o.foregroundImageShadowBlur||(null===(R=o.foreground)||void 0===R||null===(F=R.image)||void 0===F?void 0:F.shadowBlur),foregroundImageShadowColor:o.foregroundImageShadowColor||(null===(H=o.foreground)||void 0===H||null===(X=H.image)||void 0===X?void 0:X.shadowColor),foregroundPadding:o.foregroundPadding,positionProbeBackgroundColor:o.positionProbeBackgroundColor||(null===(Y=o.positionProbe)||void 0===Y?void 0:Y.backgroundColor)||(null===(j=o.positionDetection)||void 0===j?void 0:j.backgroundColor),positionProbeForegroundColor:o.positionProbeForegroundColor||(null===(W=o.positionProbe)||void 0===W?void 0:W.foregroundColor)||(null===(G=o.positionDetection)||void 0===G?void 0:G.foregroundColor),separatorColor:o.separatorColor||(null===(K=o.separator)||void 0===K?void 0:K.color),positionAdjustBackgroundColor:o.positionAdjustBackgroundColor||(null===(Q=o.positionAdjust)||void 0===Q?void 0:Q.backgroundColor)||(null===(U=o.alignment)||void 0===U?void 0:U.backgroundColor),positionAdjustForegroundColor:o.positionAdjustForegroundColor||(null===(J=o.positionAdjust)||void 0===J?void 0:J.foregroundColor)||(null===(q=o.alignment)||void 0===q?void 0:q.foregroundColor),timingBackgroundColor:o.timingBackgroundColor||(null===(V=o.timing)||void 0===V?void 0:V.backgroundColor),timingForegroundColor:o.timingForegroundColor||(null===(Z=o.timing)||void 0===Z?void 0:Z.foregroundColor),typeNumberBackgroundColor:o.typeNumberBackgroundColor||(null===($=o.typeNumber)||void 0===$?void 0:$.backgroundColor)||(null===(oo=o.versionInformation)||void 0===oo?void 0:oo.backgroundColor),typeNumberForegroundColor:o.typeNumberForegroundColor||(null===(eo=o.typeNumber)||void 0===eo?void 0:eo.foregroundColor)||(null===(to=o.versionInformation)||void 0===to?void 0:to.foregroundColor),darkBlockColor:o.darkBlockColor||(null===(ro=o.darkBlock)||void 0===ro?void 0:ro.color)},!0))},C.prototype.make=function(){var o=this.foregroundColor,e=this.backgroundColor,t=this.typeNumber,r=this.errorCorrectLevel,n=this.data,i=this.size,a=this.margin,u=this.useDynamicSize;if(o===e)throw console.error("[uQRCode]: foregroundColor and backgroundColor cannot be the same!"),new C.Error("foregroundColor and backgroundColor cannot be the same!");var s=new d(t,r);s.addData(function(o){o=o.toString();for(var e,t="",r=0;r=1&&e<=127?t+=o.charAt(r):e>2047?(t+=String.fromCharCode(224|e>>12&15),t+=String.fromCharCode(128|e>>6&63),t+=String.fromCharCode(128|e>>0&63)):(t+=String.fromCharCode(192|e>>6&31),t+=String.fromCharCode(128|e>>0&63));return t}(n)),s.make(),this.base=s,this.typeNumber=s.typeNumber,this.modules=s.modules,this.moduleCount=s.moduleCount,this.dynamicSize=u?Math.ceil((i-2*a)/s.moduleCount)*s.moduleCount+2*a:i,function(o){var e=o.dynamicSize,t=o.margin,r=o.backgroundColor,n=o.backgroundPadding,i=o.foregroundColor,a=o.foregroundPadding,u=o.modules,d=o.moduleCount,s=(e-2*t)/d,g=s,l=0;n>0&&(l=g*n/2,g-=2*l);var h=s,c=0;a>0&&(c=h*a/2,h-=2*c);for(var f=0;fr-9-1&&f<9||f>r-9-1&&h<9||l.forEach((function(o){var e=t[h+o[0]][f+o[1]];e.type.push("positionAdjust"),e.type.includes("timing")?1==o[2]?e.color=a==n?d:a:e.color=a==n&&u==i?s:u:e.color=1==o[2]?a:u}))},m=0;m0)return this.drawModules;var o=this.drawModules=[],e=this.modules,t=this.moduleCount,r=this.dynamicSize,n=this.areaColor,i=this.backgroundImageSrc,a=this.backgroundImageX,u=this.backgroundImageY,d=this.backgroundImageWidth,s=this.backgroundImageHeight,g=this.backgroundImageAlpha,l=this.backgroundImageBorderRadius,h=this.foregroundImageSrc,c=this.foregroundImageX,f=this.foregroundImageY,m=this.foregroundImageWidth,v=this.foregroundImageHeight,p=this.foregroundImagePadding,C=this.foregroundImageBackgroundColor,b=this.foregroundImageBorderRadius,k=this.foregroundImageShadowOffsetX,y=this.foregroundImageShadowOffsetY,w=this.foregroundImageShadowBlur,I=this.foregroundImageShadowColor;n&&o.push({name:"area",type:"area",color:n,x:0,y:0,width:r,height:r}),i&&o.push({name:"backgroundImage",type:"image",imageSrc:i,mappingName:"backgroundImageSrc",x:a,y:u,width:d,height:s,alpha:g,borderRadius:l});for(var B=0;Bo||0>e||o>=t||e>=t)&&this.modules[o][e].isBlack},C.prototype.drawCanvas=function(){var o=this,e=this.isMaked,t=this.canvasContext,r=(this.useDynamicSize,this.dynamicSize),a=(this.foregroundColor,this.foregroundPadding,this.backgroundColor,this.backgroundPadding,this.drawReserve);this.margin;if(!e)return console.error("[uQRCode]: please execute the make method first!"),Promise.reject(new C.Error("please execute the make method first!"));var u=this.getDrawModules(),d=function(){var e=(0,i.default)((0,n.default)().mark((function e(i,d){var s,g,l,h,c,f,m,v,p,b,k,y,w,I;return(0,n.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:e.prev=0,t.clearRect(0,0,r,r),t.draw(!1),s=0;case 3:if(!(s0&&(t.beginPath(),t.moveTo(l+v,h),t.arcTo(l+c,h,l+c,h+f,v),t.arcTo(l+c,h+f,l,h+f,v),t.arcTo(l,h+f,l,h,v),t.arcTo(l,h,l+c,h,v),t.closePath(),t.setStrokeStyle("rgba(0,0,0,0)"),t.stroke(),t.clip()),e.prev=16,e.next=19,o.loadImage(g.imageSrc);case 19:m=e.sent,t.drawImage(m,l,h,c,f),e.next=26;break;case 23:throw e.prev=23,e.t1=e["catch"](16),console.error("[uQRCode]: ".concat(g.mappingName," invalid!")),new C.Error("".concat(g.mappingName," invalid!"));case 26:e.next=44;break;case 28:if("foregroundImage"!==g.name){e.next=44;break}return l=Math.round(g.x),h=Math.round(g.y),c=Math.round(g.width),f=Math.round(g.height),p=Math.round(g.padding),c<2*(v=Math.round(g.borderRadius))&&(v=c/2),f<2*v&&(v=f/2),b=l-p,k=h-p,y=c+2*p,w=f+2*p,I=Math.round(y/c*v),y<2*I&&(I=y/2),w<2*I&&(I=w/2),t.save(),t.setShadow(g.shadowOffsetX,g.shadowOffsetY,g.shadowBlur,g.shadowColor),I>0?(t.beginPath(),t.moveTo(b+I,k),t.arcTo(b+y,k,b+y,k+w,I),t.arcTo(b+y,k+w,b,k+w,I),t.arcTo(b,k+w,b,k,I),t.arcTo(b,k,b+y,k,I),t.closePath(),t.setFillStyle(g.backgroundColor),t.fill()):(t.setFillStyle(g.backgroundColor),t.fillRect(b,k,y,w)),t.restore(),t.save(),I>0?(t.beginPath(),t.moveTo(b+I,k),t.arcTo(b+y,k,b+y,k+w,I),t.arcTo(b+y,k+w,b,k+w,I),t.arcTo(b,k+w,b,k,I),t.arcTo(b,k,b+y,k,I),t.closePath(),t.setFillStyle(p>0?g.backgroundColor:"rgba(0,0,0,0)"),t.fill()):(t.setFillStyle(p>0?g.backgroundColor:"rgba(0,0,0,0)"),t.fillRect(b,k,y,w)),t.restore(),v>0&&(t.beginPath(),t.moveTo(l+v,h),t.arcTo(l+c,h,l+c,h+f,v),t.arcTo(l+c,h+f,l,h+f,v),t.arcTo(l,h+f,l,h,v),t.arcTo(l,h,l+c,h,v),t.closePath(),t.setStrokeStyle("rgba(0,0,0,0)"),t.stroke(),t.clip()),e.prev=34,e.next=37,o.loadImage(g.imageSrc);case 37:m=e.sent,t.drawImage(m,l,h,c,f),e.next=44;break;case 41:throw e.prev=41,e.t2=e["catch"](34),console.error("[uQRCode]: ".concat(g.mappingName," invalid!")),new C.Error("".concat(g.mappingName," invalid!"));case 44:a&&t.draw(!0),t.restore();case 45:s++,e.next=3;break;case 48:t.draw(!0),setTimeout(i,150),e.next=56;break;case 51:if(e.prev=51,e.t3=e["catch"](0),e.t3 instanceof C.Error){e.next=55;break}throw e.t3;case 55:d(e.t3);case 56:case"end":return e.stop()}}),e,null,[[0,51],[16,23],[34,41]])})));return function(o,t){return e.apply(this,arguments)}}();return new Promise((function(o,e){d(o,e)}))},C.prototype.draw=function(){return this.drawCanvas()},C.prototype.register=function(o){o&&o(C,this,!0)}}}]);