Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@xcoobee/payment-sdk

Package Overview
Dependencies
Maintainers
3
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xcoobee/payment-sdk - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

dist/browser/Builder.js

@@ -231,3 +231,3 @@ var __spreadArrays = (this && this.__spreadArrays) || function () {

}
this.logic = __spreadArrays((item.r ? this.logic.filter(function (logicItem) { return logicItem.r !== item.r; }) : this.logic), [
this.logic = __spreadArrays(this.logic.filter(function (logicItem) { return logicItem.a !== item.a && (!item.r || logicItem.r !== item.r); }), [
item,

@@ -234,0 +234,0 @@ ]);

@@ -1,1 +0,1 @@

!function(t){var e={};function i(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.m=t,i.c=e,i.d=function(t,e,o){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(i.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(o,r,function(e){return t[e]}.bind(null,r));return o},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=3)}([function(t,e,i){(function(t,i){var o;(function(){"use strict";function r(t,e){this.mode=A.MODE_8BIT_BYTE,this.data=t,this.parsedData=[];for(var i=0,o=this.data.length;i<o;i++){var r=[],n=this.data.charCodeAt(i);e?r[0]=n:n>65536?(r[0]=240|(1835008&n)>>>18,r[1]=128|(258048&n)>>>12,r[2]=128|(4032&n)>>>6,r[3]=128|63&n):n>2048?(r[0]=224|(61440&n)>>>12,r[1]=128|(4032&n)>>>6,r[2]=128|63&n):n>128?(r[0]=192|(1984&n)>>>6,r[1]=128|63&n):r[0]=n,this.parsedData.push(r)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}function n(t,e){this.typeNumber=t,this.errorCorrectLevel=e,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}function a(t,e){if(t.length==h)throw new Error(t.length+"/"+e);for(var i=0;i<t.length&&0==t[i];)i++;this.num=new Array(t.length-i+e);for(var o=0;o<t.length-i;o++)this.num[o]=t[o+i]}function g(t,e){this.totalCount=t,this.dataCount=e}function s(){this.buffer=[],this.length=0}function l(){var t=!1,e=navigator.userAgent;if(/android/i.test(e)){t=!0;var i=e.toString().match(/android ([0-9]\.[0-9])/i);i&&i[1]&&(t=parseFloat(i[1]))}return t}function c(t,e){for(var i=e.correctLevel,o=1,r=function(t){var e=encodeURI(t).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return e.length+(e.length!=t.length?3:0)}(t),n=0,a=w.length;n<=a;n++){var g=0;switch(i){case p.L:g=w[n][0];break;case p.M:g=w[n][1];break;case p.Q:g=w[n][2];break;case p.H:g=w[n][3]}if(r<=g)break;o++}if(o>w.length)throw new Error("Too long data");return 0!=e.version&&(o<=e.version?(o=e.version,e.runVersion=o):(console.warn("QR Code version "+e.version+" too small, run version use "+o),e.runVersion=o)),o}var h,I,u="object"==typeof t&&t&&t.Object===Object&&t,d="object"==typeof self&&self&&self.Object===Object&&self,M=u||d||Function("return this")(),D=(e&&!e.nodeType&&e&&"object"==typeof i&&i&&i.nodeType,M.QRCode);r.prototype={getLength:function(t){return this.parsedData.length},write:function(t){for(var e=0,i=this.parsedData.length;e<i;e++)t.put(this.parsedData[e],8)}},n.prototype={addData:function(t,e){var i=new r(t,e);this.dataList.push(i),this.dataCache=null},isDark:function(t,e){if(t<0||this.moduleCount<=t||e<0||this.moduleCount<=e)throw new Error(t+","+e);return this.modules[t][e][0]},getEye:function(t,e){if(t<0||this.moduleCount<=t||e<0||this.moduleCount<=e)throw new Error(t+","+e);var i=this.modules[t][e];if(i[1]){var o="P"+i[1]+"_"+i[2];return"A"==i[2]&&(o="A"+i[1]),{isDark:i[0],type:o}}return null},getModuleCount:function(){return this.moduleCount},make:function(){this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(t,e){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var i=0;i<this.moduleCount;i++){this.modules[i]=new Array(this.moduleCount);for(var o=0;o<this.moduleCount;o++)this.modules[i][o]=[]}this.setupPositionProbePattern(0,0,"TL"),this.setupPositionProbePattern(this.moduleCount-7,0,"BL"),this.setupPositionProbePattern(0,this.moduleCount-7,"TR"),this.setupPositionAdjustPattern("A"),this.setupTimingPattern(),this.setupTypeInfo(t,e),this.typeNumber>=7&&this.setupTypeNumber(t),null==this.dataCache&&(this.dataCache=n.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)},setupPositionProbePattern:function(t,e,i){for(var o=-1;o<=7;o++)if(!(t+o<=-1||this.moduleCount<=t+o))for(var r=-1;r<=7;r++)e+r<=-1||this.moduleCount<=e+r||(0<=o&&o<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==o||6==o)||2<=o&&o<=4&&2<=r&&r<=4?(this.modules[t+o][e+r][0]=!0,this.modules[t+o][e+r][2]=i,this.modules[t+o][e+r][1]=-0==o||-0==r||6==o||6==r?"O":"I"):this.modules[t+o][e+r][0]=!1)},getBestMaskPattern:function(){for(var t=0,e=0,i=0;i<8;i++){this.makeImpl(!0,i);var o=N.getLostPoint(this);(0==i||t>o)&&(t=o,e=i)}return e},createMovieClip:function(t,e,i){var o=t.createEmptyMovieClip(e,i);this.make();for(var r=0;r<this.modules.length;r++)for(var n=1*r,a=0;a<this.modules[r].length;a++){var g=1*a;this.modules[r][a][0]&&(o.beginFill(0,100),o.moveTo(g,n),o.lineTo(g+1,n),o.lineTo(g+1,n+1),o.lineTo(g,n+1),o.endFill())}return o},setupTimingPattern:function(){for(var t=8;t<this.moduleCount-8;t++)null==this.modules[t][6][0]&&(this.modules[t][6][0]=t%2==0);for(var e=8;e<this.moduleCount-8;e++)null==this.modules[6][e][0]&&(this.modules[6][e][0]=e%2==0)},setupPositionAdjustPattern:function(t){for(var e=N.getPatternPosition(this.typeNumber),i=0;i<e.length;i++)for(var o=0;o<e.length;o++){var r=e[i],n=e[o];if(null==this.modules[r][n][0])for(var a=-2;a<=2;a++)for(var g=-2;g<=2;g++)-2==a||2==a||-2==g||2==g||0==a&&0==g?(this.modules[r+a][n+g][0]=!0,this.modules[r+a][n+g][2]=t,this.modules[r+a][n+g][1]=-2==a||-2==g||2==a||2==g?"O":"I"):this.modules[r+a][n+g][0]=!1}},setupTypeNumber:function(t){for(var e=N.getBCHTypeNumber(this.typeNumber),i=0;i<18;i++){var o=!t&&1==(e>>i&1);this.modules[Math.floor(i/3)][i%3+this.moduleCount-8-3][0]=o}for(i=0;i<18;i++){o=!t&&1==(e>>i&1);this.modules[i%3+this.moduleCount-8-3][Math.floor(i/3)][0]=o}},setupTypeInfo:function(t,e){for(var i=this.errorCorrectLevel<<3|e,o=N.getBCHTypeInfo(i),r=0;r<15;r++){var n=!t&&1==(o>>r&1);r<6?this.modules[r][8][0]=n:r<8?this.modules[r+1][8][0]=n:this.modules[this.moduleCount-15+r][8][0]=n}for(r=0;r<15;r++){n=!t&&1==(o>>r&1);r<8?this.modules[8][this.moduleCount-r-1][0]=n:r<9?this.modules[8][15-r-1+1][0]=n:this.modules[8][15-r-1][0]=n}this.modules[this.moduleCount-8][8][0]=!t},mapData:function(t,e){for(var i=-1,o=this.moduleCount-1,r=7,n=0,a=this.moduleCount-1;a>0;a-=2)for(6==a&&a--;;){for(var g=0;g<2;g++)if(null==this.modules[o][a-g][0]){var s=!1;n<t.length&&(s=1==(t[n]>>>r&1)),N.getMask(e,o,a-g)&&(s=!s),this.modules[o][a-g][0]=s,-1==--r&&(n++,r=7)}if((o+=i)<0||this.moduleCount<=o){o-=i,i=-i;break}}}},n.PAD0=236,n.PAD1=17,n.createData=function(t,e,i){for(var o=g.getRSBlocks(t,e),r=new s,a=0;a<i.length;a++){var l=i[a];r.put(l.mode,4),r.put(l.getLength(),N.getLengthInBits(l.mode,t)),l.write(r)}var c=0;for(a=0;a<o.length;a++)c+=o[a].dataCount;if(r.getLengthInBits()>8*c)throw new Error("code length overflow. ("+r.getLengthInBits()+">"+8*c+")");for(r.getLengthInBits()+4<=8*c&&r.put(0,4);r.getLengthInBits()%8!=0;)r.putBit(!1);for(;!(r.getLengthInBits()>=8*c)&&(r.put(n.PAD0,8),!(r.getLengthInBits()>=8*c));)r.put(n.PAD1,8);return n.createBytes(r,o)},n.createBytes=function(t,e){for(var i=0,o=0,r=0,n=new Array(e.length),g=new Array(e.length),s=0;s<e.length;s++){var l=e[s].dataCount,c=e[s].totalCount-l;o=Math.max(o,l),r=Math.max(r,c),n[s]=new Array(l);for(var h=0;h<n[s].length;h++)n[s][h]=255&t.buffer[h+i];i+=l;var I=N.getErrorCorrectPolynomial(c),u=new a(n[s],I.getLength()-1).mod(I);g[s]=new Array(I.getLength()-1);for(h=0;h<g[s].length;h++){var d=h+u.getLength()-g[s].length;g[s][h]=d>=0?u.get(d):0}}var M=0;for(h=0;h<e.length;h++)M+=e[h].totalCount;var D=new Array(M),A=0;for(h=0;h<o;h++)for(s=0;s<e.length;s++)h<n[s].length&&(D[A++]=n[s][h]);for(h=0;h<r;h++)for(s=0;s<e.length;s++)h<g[s].length&&(D[A++]=g[s][h]);return D};for(var A={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},p={L:1,M:0,Q:3,H:2},C={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},N={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(t){for(var e=t<<10;N.getBCHDigit(e)-N.getBCHDigit(N.G15)>=0;)e^=N.G15<<N.getBCHDigit(e)-N.getBCHDigit(N.G15);return(t<<10|e)^N.G15_MASK},getBCHTypeNumber:function(t){for(var e=t<<12;N.getBCHDigit(e)-N.getBCHDigit(N.G18)>=0;)e^=N.G18<<N.getBCHDigit(e)-N.getBCHDigit(N.G18);return t<<12|e},getBCHDigit:function(t){for(var e=0;0!=t;)e++,t>>>=1;return e},getPatternPosition:function(t){return N.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,i){switch(t){case C.PATTERN000:return(e+i)%2==0;case C.PATTERN001:return e%2==0;case C.PATTERN010:return i%3==0;case C.PATTERN011:return(e+i)%3==0;case C.PATTERN100:return(Math.floor(e/2)+Math.floor(i/3))%2==0;case C.PATTERN101:return e*i%2+e*i%3==0;case C.PATTERN110:return(e*i%2+e*i%3)%2==0;case C.PATTERN111:return(e*i%3+(e+i)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new a([1],0),i=0;i<t;i++)e=e.multiply(new a([1,y.gexp(i)],0));return e},getLengthInBits:function(t,e){if(1<=e&&e<10)switch(t){case A.MODE_NUMBER:return 10;case A.MODE_ALPHA_NUM:return 9;case A.MODE_8BIT_BYTE:case A.MODE_KANJI:return 8;default:throw new Error("mode:"+t)}else if(e<27)switch(t){case A.MODE_NUMBER:return 12;case A.MODE_ALPHA_NUM:return 11;case A.MODE_8BIT_BYTE:return 16;case A.MODE_KANJI:return 10;default:throw new Error("mode:"+t)}else{if(!(e<41))throw new Error("type:"+e);switch(t){case A.MODE_NUMBER:return 14;case A.MODE_ALPHA_NUM:return 13;case A.MODE_8BIT_BYTE:return 16;case A.MODE_KANJI:return 12;default:throw new Error("mode:"+t)}}},getLostPoint:function(t){for(var e=t.getModuleCount(),i=0,o=0;o<e;o++)for(var r=0;r<e;r++){for(var n=0,a=t.isDark(o,r),g=-1;g<=1;g++)if(!(o+g<0||e<=o+g))for(var s=-1;s<=1;s++)r+s<0||e<=r+s||0==g&&0==s||a==t.isDark(o+g,r+s)&&n++;n>5&&(i+=3+n-5)}for(o=0;o<e-1;o++)for(r=0;r<e-1;r++){var l=0;t.isDark(o,r)&&l++,t.isDark(o+1,r)&&l++,t.isDark(o,r+1)&&l++,t.isDark(o+1,r+1)&&l++,0!=l&&4!=l||(i+=3)}for(o=0;o<e;o++)for(r=0;r<e-6;r++)t.isDark(o,r)&&!t.isDark(o,r+1)&&t.isDark(o,r+2)&&t.isDark(o,r+3)&&t.isDark(o,r+4)&&!t.isDark(o,r+5)&&t.isDark(o,r+6)&&(i+=40);for(r=0;r<e;r++)for(o=0;o<e-6;o++)t.isDark(o,r)&&!t.isDark(o+1,r)&&t.isDark(o+2,r)&&t.isDark(o+3,r)&&t.isDark(o+4,r)&&!t.isDark(o+5,r)&&t.isDark(o+6,r)&&(i+=40);var c=0;for(r=0;r<e;r++)for(o=0;o<e;o++)t.isDark(o,r)&&c++;return i+Math.abs(100*c/e/e-50)/5*10}},y={glog:function(t){if(t<1)throw new Error("glog("+t+")");return y.LOG_TABLE[t]},gexp:function(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return y.EXP_TABLE[t]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},f=0;f<8;f++)y.EXP_TABLE[f]=1<<f;for(f=8;f<256;f++)y.EXP_TABLE[f]=y.EXP_TABLE[f-4]^y.EXP_TABLE[f-5]^y.EXP_TABLE[f-6]^y.EXP_TABLE[f-8];for(f=0;f<255;f++)y.LOG_TABLE[y.EXP_TABLE[f]]=f;a.prototype={get:function(t){return this.num[t]},getLength:function(){return this.num.length},multiply:function(t){for(var e=new Array(this.getLength()+t.getLength()-1),i=0;i<this.getLength();i++)for(var o=0;o<t.getLength();o++)e[i+o]^=y.gexp(y.glog(this.get(i))+y.glog(t.get(o)));return new a(e,0)},mod:function(t){if(this.getLength()-t.getLength()<0)return this;for(var e=y.glog(this.get(0))-y.glog(t.get(0)),i=new Array(this.getLength()),o=0;o<this.getLength();o++)i[o]=this.get(o);for(o=0;o<t.getLength();o++)i[o]^=y.gexp(y.glog(t.get(o))+e);return new a(i,0).mod(t)}},g.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],g.getRSBlocks=function(t,e){var i=g.getRsBlockTable(t,e);if(i==h)throw new Error("bad rs block @ typeNumber:"+t+"/errorCorrectLevel:"+e);for(var o=i.length/3,r=[],n=0;n<o;n++)for(var a=i[3*n+0],s=i[3*n+1],l=i[3*n+2],c=0;c<a;c++)r.push(new g(s,l));return r},g.getRsBlockTable=function(t,e){switch(e){case p.L:return g.RS_BLOCK_TABLE[4*(t-1)+0];case p.M:return g.RS_BLOCK_TABLE[4*(t-1)+1];case p.Q:return g.RS_BLOCK_TABLE[4*(t-1)+2];case p.H:return g.RS_BLOCK_TABLE[4*(t-1)+3];default:return h}},s.prototype={get:function(t){var e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(var i=0;i<e;i++)this.putBit(1==(t>>>e-i-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]],T=function(){var t=function(t,e){this._el=t,this._htOption=e};return t.prototype.draw=function(t){function e(t,e){var i=document.createElementNS("http://www.w3.org/2000/svg",t);for(var o in e)e.hasOwnProperty(o)&&i.setAttribute(o,e[o]);return i}var i=this._htOption,o=this._el,r=t.getModuleCount();Math.floor(i.width/r),Math.floor(i.height/r),this.clear();var n=e("svg",{viewBox:"0 0 "+String(r)+" "+String(r),width:"100%",height:"100%",fill:i.colorLight});n.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),o.appendChild(n),n.appendChild(e("rect",{fill:i.colorLight,width:"100%",height:"100%"})),n.appendChild(e("rect",{fill:i.colorDark,width:"1",height:"1",id:"template"}));for(var a=0;a<r;a++)for(var g=0;g<r;g++)if(t.isDark(a,g)){var s=e("use",{x:String(g),y:String(a)});s.setAttributeNS("http://www.w3.org/1999/xlink","href","#template"),n.appendChild(s)}},t.prototype.clear=function(){for(;this._el.hasChildNodes();)this._el.removeChild(this._el.lastChild)},t}(),m="svg"===document.documentElement.tagName.toLowerCase()?T:"undefined"!=typeof CanvasRenderingContext2D?function(){function t(){try{var t=this._elCanvas.toDataURL("image/png");this._elImage.src=t,this.dataURL=t,this._elImage.style.display="inline",this._elCanvas.style.display="none"}catch(t){console.error(t)}this._htOption.onRenderingEnd&&(this.dataURL||console.error("Can not get base64 data, please check: 1. published the page and image to the server 2. The image request support CORS"),this._htOption.onRenderingEnd(this._htOption,this.dataURL))}function e(t,e){var i=this;if(i._fFail=e,i._fSuccess=t,null===i._bSupportDataURI){var o=document.createElement("img"),r=function(){i._bSupportDataURI=!1,i._fFail&&i._fFail.call(i)};return o.onabort=r,o.onerror=r,o.onload=function(){i._bSupportDataURI=!0,i._fSuccess&&i._fSuccess.call(i)},void(o.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==")}!0===i._bSupportDataURI&&i._fSuccess?i._fSuccess.call(i):!1===i._bSupportDataURI&&i._fFail&&i._fFail.call(i)}if(M._android&&M._android<=2.1){var i=1/window.devicePixelRatio,o=CanvasRenderingContext2D.prototype.drawImage;CanvasRenderingContext2D.prototype.drawImage=function(t,e,r,n,a,g,s,l,c){if("nodeName"in t&&/img/i.test(t.nodeName))for(var h=arguments.length-1;h>=1;h--)arguments[h]=arguments[h]*i;else void 0===l&&(arguments[1]*=i,arguments[2]*=i,arguments[3]*=i,arguments[4]*=i);o.apply(this,arguments)}}var r=function(t,e){this._bIsPainted=!1,this._android=l(),this._htOption=e,this._elCanvas=document.createElement("canvas"),t.appendChild(this._elCanvas),this._el=t,this._oContext=this._elCanvas.getContext("2d"),this._bIsPainted=!1,this._elImage=document.createElement("img"),this._elImage.alt="Scan me!",this._elImage.style.display="none",this._el.appendChild(this._elImage),this._bSupportDataURI=null,this.dataURL=null};return r.prototype.draw=function(t){function e(){r.lineWidth=0,r.fillStyle=n.quietZoneColor,r.fillRect(0,0,l._elCanvas.width,n.quietZone),r.fillRect(0,n.quietZone,n.quietZone,l._elCanvas.height-2*n.quietZone),r.fillRect(l._elCanvas.width-n.quietZone,n.quietZone,n.quietZone,l._elCanvas.height-2*n.quietZone),r.fillRect(0,l._elCanvas.height-n.quietZone,l._elCanvas.width,n.quietZone)}function i(t){n.onRenderingStart&&n.onRenderingStart(n);for(var i=0;i<a;i++)for(var o=0;o<a;o++){var l=o*g+n.quietZone,c=i*s+n.quietZone,h=t.isDark(i,o),I=t.getEye(i,o);if(I){h=I.isDark;var u=I.type,d=n[u]||n[u.substring(0,2)]||n.colorDark;r.lineWidth=0,r.strokeStyle=h?d:n.colorLight,r.fillStyle=h?d:n.colorLight,r.fillRect(l,n.titleHeight+c,g,s)}else{r.lineWidth=0,r.strokeStyle=h?n.colorDark:n.colorLight,r.fillStyle=h?n.colorDark:n.colorLight;var M=n.dotScale;if(6==i){M=1;var D=n.timing_H||n.timing||n.colorDark;r.fillStyle=h?D:n.colorLight,r.strokeStyle=r.fillStyle,r.fillRect(l+g*(1-M)/2,n.titleHeight+c+s*(1-M)/2,g*M,s*M)}else if(6==o){M=1;var A=n.timing_V||n.timing||n.colorDark;r.fillStyle=h?A:n.colorLight,r.strokeStyle=r.fillStyle,r.fillRect(l+g*(1-M)/2,n.titleHeight+c+s*(1-M)/2,g*M,s*M)}else n.backgroundImage?(n.autoColor?(r.strokeStyle=h?"rgba(0, 0, 0, .6)":"rgba(255, 255, 255, .7)",r.fillStyle=h?"rgba(0, 0, 0, .6)":"rgba(255, 255, 255, .7)"):(r.strokeStyle=h?n.colorDark:"rgba(0,0,0,0)",r.fillStyle=h?n.colorDark:"rgba(0,0,0,0)",r.strokeStyle=r.fillStyle),r.fillRect(l+g*(1-M)/2,n.titleHeight+c+s*(1-M)/2,g*M,s*M)):(r.strokeStyle=r.fillStyle,r.fillRect(l+g*(1-M)/2,n.titleHeight+c+s*(1-M)/2,g*M,s*M))}1==n.dotScale||I||(r.strokeStyle=n.colorLight)}if(n.title&&(r.fillStyle=n.titleBackgroundColor,r.fillRect(0,0,this._elCanvas.width,n.titleHeight+n.quietZone),r.font=n.titleFont,r.fillStyle=n.titleColor,r.textAlign="center",r.fillText(n.title,this._elCanvas.width/2,+n.quietZone+n.titleTop)),n.subTitle&&(r.font=n.subTitleFont,r.fillStyle=n.subTitleColor,r.fillText(n.subTitle,this._elCanvas.width/2,+n.quietZone+n.subTitleTop)),n.logo){var p=new Image,C=this;p.onload=function(){!function(t){var i=Math.round(n.width/3.5),o=Math.round(n.height/3.5);i!==o&&(i=o),n.logoWidth&&(i=Math.round(n.logoWidth)),n.logoHeight&&(o=Math.round(n.logoHeight));var a,g,s=(n.width+2*n.quietZone-i)/2,l=(n.height+n.titleHeight+2*n.quietZone-o)/2;n.logoBackgroundTransparent||(r.fillStyle=n.logoBackgroundColor,r.fillRect(s,l,i,o)),void 0===t.naturalWidth?(a=t.width,g=t.height):(a=t.naturalWidth,g=t.naturalHeight);var c=Math.min(i/a,o/g),h=a*c,I=g*c;r.drawImage(t,s+(i-h)/2,l+(o-I)/2,h,I),n.quietZone>0&&n.quietZoneColor&&e(),C._bIsPainted=!0,C.makeImage()}(p)},p.onerror=function(t){console.error(t)},p.src=n.logo}else this._bIsPainted=!0,this.makeImage()}var o=this._elImage,r=this._oContext,n=this._htOption;n.title||n.subTitle||(n.height-=n.titleHeight,n.titleHeight=0);var a=t.getModuleCount(),g=Math.round(n.width/a),s=Math.round((n.height-n.titleHeight)/a);n.width=g*a,n.height=s*a+n.titleHeight,n.quietZone=Math.round(n.quietZone),this._elCanvas.width=n.width+2*n.quietZone,this._elCanvas.height=n.height+2*n.quietZone,o.style.display="none",this.clear(),r.lineWidth=0,r.fillStyle=n.colorLight,r.fillRect(0,0,this._elCanvas.width,this._elCanvas.height);var l=this;if(n.backgroundImage){var c=new Image;c.onload=function(){r.globalAlpha=1,r.globalAlpha=n.backgroundImageAlpha,r.drawImage(c,0,n.titleHeight,n.width+2*n.quietZone,n.height+2*n.quietZone-n.titleHeight),r.globalAlpha=1,i.call(l,t)},c.src=n.backgroundImage}else i.call(l,t)},r.prototype.makeImage=function(){this._bIsPainted&&e.call(this,t)},r.prototype.isPainted=function(){return this._bIsPainted},r.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height),this._bIsPainted=!1},r.prototype.remove=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height),this._bIsPainted=!1,this._el.innerHTML=""},r.prototype.round=function(t){return t?Math.floor(1e3*t)/1e3:t},r}():function(){var t=function(t,e){this._el=t,this._htOption=e};return t.prototype.draw=function(t){var e=this._htOption,i=this._el,o=t.getModuleCount(),r=Math.round(e.width/o),n=Math.round((e.height-e.titleHeight)/o);this._htOption.width=r*o,this._htOption.height=n*o+e.titleHeight,this._htOption.quietZone=Math.round(this._htOption.quietZone);var a=[],g="",s=Math.round(r*e.dotScale),l=Math.round(n*e.dotScale);s<4&&(s=4,l=4);var c=e.colorDark,h=e.colorLight;if(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="transparent";var I='<div style="display:inline-block; z-index:-10;position:absolute;"><img src="'+e.backgroundImage+'" widht="'+(e.width+2*e.quietZone)+'" height="'+(e.height+2*e.quietZone)+'" style="opacity:'+e.backgroundImageAlpha+";filter:alpha(opacity="+100*e.backgroundImageAlpha+'); "/></div>';a.push(I)}if(e.quietZone&&(g="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('<div style="font-size:0;'+g+'">'),a.push('<table style="font-size:0;border:0;border-collapse:collapse; margin-top:'+e.quietZone+'px;" border="0" cellspacing="0" cellspadding="0" align="center" valign="middle">'),a.push('<tr height="'+e.titleHeight+'" align="center"><td style="border:0;border-collapse:collapse;margin:0;padding:0" colspan="'+o+'">'),e.title){var u=e.titleColor,d=e.titleFont;a.push('<div style="width:100%;margin-top:'+e.titleTop+"px;color:"+u+";font:"+d+";background:"+e.titleBackgroundColor+'">'+e.title+"</div>")}e.subTitle&&a.push('<div style="width:100%;margin-top:'+(e.subTitleTop-e.titleTop)+"px;color:"+e.subTitleColor+"; font:"+e.subTitleFont+'">'+e.subTitle+"</div>"),a.push("</td></tr>");for(var M=0;M<o;M++){a.push('<tr style="border:0; padding:0; margin:0;" height="7">');for(var D=0;D<o;D++){var A=t.isDark(M,D),p=t.getEye(M,D);if(p){A=p.isDark;var C=p.type,N=e[C]||e[C.substring(0,2)]||c;a.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+r+"px;height:"+n+'px;"><span style="width:'+r+"px;height:"+n+"px;background-color:"+(A?N:h)+';display:inline-block"></span></td>')}else{var y=e.colorDark;6==M?(y=e.timing_H||e.timing||c,a.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+r+"px;height:"+n+"px;background-color:"+(A?y:h)+';"></td>')):6==D?(y=e.timing_V||e.timing||c,a.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+r+"px;height:"+n+"px;background-color:"+(A?y:h)+';"></td>')):a.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+r+"px;height:"+n+'px;"><div style="display:inline-block;width:'+s+"px;height:"+l+"px;background-color:"+(A?y:e.colorLight)+';"></div></td>')}}a.push("</tr>")}if(a.push("</table>"),a.push("</div>"),e.logo){(new Image).src=e.logo;var f=e.width/3.5,w=e.height/3.5;f!=w&&(f=w),e.logoWidth&&(f=e.logoWidth),e.logoHeight&&(w=e.logoHeight);var T="position:relative; z-index:1;display:table-cell;top:-"+((e.height-e.titleHeight)/2+w/2+e.quietZone)+"px;text-align:center; width:"+f+"px; height:"+w+"px;line-height:"+f+"px; vertical-align: middle;";e.logoBackgroundTransparent||(T+="background:"+e.logoBackgroundColor),a.push('<div style="'+T+'"><img src="'+e.logo+'" style="max-width: '+f+"px; max-height: "+w+'px;" /> <div style=" display: none; width:1px;margin-left: -1px;"></div></div>')}e.onRenderingStart&&e.onRenderingStart(e),i.innerHTML=a.join("");var m=i.childNodes[0],b=(e.width-m.offsetWidth)/2,x=(e.height-m.offsetHeight)/2;b>0&&x>0&&(m.style.margin=x+"px "+b+"px"),this._htOption.onRenderingEnd&&this._htOption.onRenderingEnd(this._htOption,null)},t.prototype.clear=function(){this._el.innerHTML=""},t}();(I=function(t,e){if(this._htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:p.H,dotScale:1,quietZone:0,quietZoneColor:"transparent",title:"",titleFont:"bold 16px Arial",titleColor:"#000000",titleBackgroundColor:"#ffffff",titleHeight:0,titleTop:30,subTitle:"",subTitleFont:"14px Arial",subTitleColor:"#4F4F4F",subTitleTop:60,logo:h,logoWidth:h,logoHeight:h,logoBackgroundColor:"#ffffff",logoBackgroundTransparent:!1,PO:h,PI:h,PO_TL:h,PI_TL:h,PO_TR:h,PI_TR:h,PO_BL:h,PI_BL:h,AO:h,AI:h,timing:h,timing_H:h,timing_V:h,backgroundImage:h,backgroundImageAlpha:1,autoColor:!1,onRenderingStart:h,onRenderingEnd:h,version:0,tooltip:!1,binary:!1},"string"==typeof e&&(e={text:e}),e)for(var i in e)this._htOption[i]=e[i];(this._htOption.version<0||this._htOption.version>40)&&(console.warn("QR Code version '"+this._htOption.version+"' is invalidate, reset to 0"),this._htOption.version=0),(this._htOption.dotScale<0||this._htOption.dotScale>1)&&(console.warn(this._htOption.dotScale+" , is invalidate, dotScale must greater than 0, less than or equal to 1, now reset to 1. "),this._htOption.dotScale=1),(this._htOption.backgroundImageAlpha<0||this._htOption.backgroundImageAlpha>1)&&(console.warn(this._htOption.backgroundImageAlpha+" , is invalidate, backgroundImageAlpha must between 0 and 1, now reset to 1. "),this._htOption.backgroundImageAlpha=1),this._htOption.height=this._htOption.height+this._htOption.titleHeight,"string"==typeof t&&(t=document.getElementById(t)),this._htOption.useSVG&&(m=T),this._android=l(),this._el=t,this._oQRCode=null,this._oDrawing=new m(this._el,this._htOption),this._htOption.text&&this.makeCode(this._htOption.text)}).prototype.makeCode=function(t){this._oQRCode=new n(c(t,this._htOption),this._htOption.correctLevel),this._oQRCode.addData(t,this._htOption.binary),this._oQRCode.make(),this._htOption.tooltip&&(this._el.title=t),this._oDrawing.draw(this._oQRCode)},I.prototype.makeImage=function(){"function"==typeof this._oDrawing.makeImage&&(!this._android||this._android>=3)&&this._oDrawing.makeImage()},I.prototype.clear=function(){this._oDrawing.remove()},I.prototype.resize=function(t,e){this._htOption.width=t,this._htOption.height=e,this._oDrawing.draw(this._oQRCode)},I.prototype.noConflict=function(){return M.QRCode===this&&(M.QRCode=D),I},I.CorrectLevel=p,void 0===(o=function(){return I}.apply(e,[]))||(i.exports=o)}).call(this)}).call(this,i(1),i(2)(t))},function(t,e){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,i){"use strict";i.r(e),i.d(e,"BrowserXcooBeePaymentSDK",(function(){return u}));var o,r=function(t){return btoa(unescape(encodeURIComponent(t)))};!function(t){t[t.addMinOrFixed=1]="addMinOrFixed",t[t.addMaxOrFixed=2]="addMaxOrFixed",t[t.addSubRadio=3]="addSubRadio",t[t.addSubRadioWithExtraCost=4]="addSubRadioWithExtraCost",t[t.addSubCheckbox=5]="addSubCheckbox",t[t.addSubCheckboxWithExtraCost=6]="addSubCheckboxWithExtraCost",t[t.setTip=7]="setTip",t[t.externalPricing=8]="externalPricing",t[t.userEntry=9]="userEntry",t[t.setTotal=10]="setTotal"}(o||(o={}));var n=[o.externalPricing,o.userEntry,o.setTotal,o.setTip],a=function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;var o=Array(t),r=0;for(e=0;e<i;e++)for(var n=arguments[e],a=0,g=n.length;a<g;a++,r++)o[r]=n[a];return o},g=function(){function t(t){var e=this;this.logic=[],t&&(this.amount=t.amount,this.tax=t.tax,this.reference=t.reference,t.logic&&(Array.isArray(t.logic)?t.logic:[t.logic]).forEach((function(t){return e.addLogic(t)})))}return t.validateLogic=function(t){switch(t.a){case o.addMinOrFixed:var e=t.r,i=t.o,r=t.m;return e?e.length>40?"Reference max length is 40 chars":i||r?null:"Percentage or min fixed amount required":"Reference is required";case o.addMaxOrFixed:e=t.r,i=t.o;var n=t.M;return e?e.length>40?"Reference max length is 40 chars":i||n?null:"Percentage or max fixed amount required":"Reference is required";case o.addSubCheckbox:case o.addSubRadio:e=t.r;return!Array.isArray(e)||e.some((function(t){return"string"!=typeof t}))?"Options expected to be string[]":e.length>25?"Max options allowed is 25":e.some((function(t){return t.length>40}))?"Reference max length is 40 chars":null;case o.addSubRadioWithExtraCost:case o.addSubCheckboxWithExtraCost:e=t.r;return!Array.isArray(e)||e.some((function(t){return!Array.isArray(t)||"string"!=typeof t[0]||"number"!=typeof t[1]}))?"Options expected to be [string, number][]":e.length>25?"Max options allowed is 25":e.some((function(t){return t[0].length>40}))?"Reference max length is 40 chars":null;case o.externalPricing:return(e=t.r)?e.length>40?"Price code max length is 40 chars":null:"Price code is required";case o.userEntry:case o.setTotal:case o.setTip:return null;default:return"Unknown action"}},t.prototype.getKey=function(){return this.reference+"_"+this.amount+"_"+this.tax},t.prototype.setAmount=function(t){return this.amount=t,this},t.prototype.setTax=function(t){return this.tax=t,this},t.prototype.setReference=function(t){return this.reference=t,this},t.prototype.fromRaw=function(t){var e=this;return this.amount=t["0-3"],this.tax=t["0-5"],this.reference=t["0-6"],this.logic=[],t.l&&(Array.isArray(t.l)?t.l:[t.l]).forEach((function(t){return e.addLogic(t)})),this},t.prototype.hasAction=function(t){return this.logic.some((function(e){return e.a===t}))},t.prototype.validate=function(){return this.hasAction(o.setTip)?null:this.amount||!this.logic.length||this.hasAction(o.externalPricing)||this.hasAction(o.userEntry)||this.hasAction(o.setTip)||this.hasAction(o.setTotal)?!/(undefined|null|^$)/.test(String(this.amount))&&(this.amount<.05||this.amount>9999.99)?"Amount must be in range 0.05 - 9999.99":this.reference||!this.logic.length||this.hasAction(o.externalPricing)||this.hasAction(o.setTip)||this.hasAction(o.setTotal)?this.reference&&this.reference.length>40?"Reference max length is 40 chars":void 0:"Reference required":"Amount required"},t.prototype.addLogic=function(e){var i=t.validateLogic(e);if(i)throw new Error(i);return e.a===o.setTip?(this.logic=[{a:o.setTip}],this):(this.hasAction(o.setTip)&&(this.logic=this.logic.filter((function(t){return t.a!==o.setTip}))),-1!==n.indexOf(e.a)&&this.logic.some((function(t){return-1!==n.indexOf(t.a)}))&&(this.logic=this.logic.filter((function(t){return-1===n.indexOf(t.a)}))),this.logic=a(e.r?this.logic.filter((function(t){return t.r!==e.r})):this.logic,[e]),this)},t.prototype.clearLogic=function(){return this.logic=[],this},t.prototype.makeTip=function(){return this.addLogic({a:o.setTip})},t.prototype.makeTotal=function(){return this.addLogic({a:o.setTotal})},t.prototype.makeUserEntry=function(){return this.addLogic({a:o.userEntry})},t.prototype.makeExternal=function(t){return this.addLogic({a:o.externalPricing,r:t})},t.prototype.addPercentageOrMin=function(t){return this.addLogic({a:o.addMinOrFixed,r:t.reference,o:t.percentage,m:t.min})},t.prototype.addPercentageOrMax=function(t){return this.addLogic({a:o.addMaxOrFixed,r:t.reference,o:t.percentage,M:t.max})},t.prototype.addRadio=function(t){return this.addLogic({a:o.addSubRadio,r:t})},t.prototype.addRadioWithCost=function(t){return this.addLogic({a:o.addSubRadioWithExtraCost,r:t})},t.prototype.addCheckboxes=function(t){return this.addLogic({a:o.addSubCheckbox,r:t})},t.prototype.addCheckboxesWithCost=function(t){return this.addLogic({a:o.addSubCheckboxWithExtraCost,r:t})},t.prototype.toJSON=function(){var t=this.validate();if(t)throw new Error(t);var e={};return!this.amount||this.hasAction(o.setTip)||this.hasAction(o.userEntry)||(e["0-3"]=this.amount),this.tax&&!this.hasAction(o.setTip)&&(e["0-5"]=this.tax),this.reference&&!this.hasAction(o.setTip)&&(e["0-6"]=this.reference),this.logic.length&&(e.l=this.logic),1===this.logic.length&&(e.l=this.logic[0]),e},t}();function s(t){return JSON.stringify(function(t){var e,i,r={};return t.forEach((function(t){r[t.getKey()]=t,t.hasAction(o.setTip)&&(e=t),t.hasAction(o.setTotal)&&(i=t)})),i?[e,i].filter(Boolean):Object.keys(r).map((function(t){return r[t]}))}(t))}var l,c=function(){function t(t,e){if(!t)throw new Error("config is required");if(!t.campaignId)throw new Error("campaignId is required");if(t.xcoobeeDeviceId&&t.xcoobeeDeviceId.length>200)throw new Error("Max xcoobeeDeviceId length is 200");if(t.deviceId&&t.deviceId.length>200)throw new Error("Max deviceId length is 200");if(t.source&&t.source.length>10)throw new Error("Max source length is 10");t.xcoobeeDeviceId&&t.deviceId&&console.warn("deviceId and xcoobeeDeviceId both provided. xcoobeeDeviceId will be used"),this.campaignId=t.campaignId,this.formId=t.formId,this.deviceId=t.deviceId,this.xcoobeeDeviceId=t.xcoobeeDeviceId,this.source=t.source,this.qrGenerator=e}return t.prototype.getQrGenerator=function(){if(!this.qrGenerator)throw new Error("qrGenerator was not provided");return this.qrGenerator},t.prototype.getUrl=function(t){void 0===t&&(t=[]);var e=t.length?r(s(t)):"";if(e.length>1800)throw new Error("Data package is too large, max size: 1800, received: "+e.length);var i={d:e,s:this.source,did:this.xcoobeeDeviceId};i.did||(i.ed=this.deviceId);var o=Object.keys(i).filter((function(t){return i[t]})).map((function(t){return t+"="+i[t]})).join("&"),n="https://app.xcoobee.net/securePay/"+this.campaignId+(this.formId?"/"+this.formId:"")+(o?"?"+o:"");if(n.length>2048)throw new Error("Invalid url, length is more than 2048 chars");return n},t.prototype.createPayUrl=function(t){var e=new g({amount:t.amount,tax:t.tax,reference:t.reference}).makeTotal();return this.getUrl([e])},t.prototype.createPayQr=function(t,e){return void 0===e&&(e=450),this.getQrGenerator().generate(this.createPayUrl(t),e)},t.prototype.createPayUrlWithTip=function(t){var e=new g({amount:t.amount,tax:t.tax,reference:t.reference}).makeTotal(),i=(new g).makeTip();return this.getUrl([e,i])},t.prototype.createPayQrWithTip=function(t,e){return void 0===e&&(e=450),this.getQrGenerator().generate(this.createPayUrlWithTip(t),e)},t.prototype.createSingleItemUrl=function(t){var e=new g({amount:t.amount,tax:t.tax,reference:t.reference});return this.getUrl([e])},t.prototype.createSingleItemQr=function(t,e){return void 0===e&&(e=450),this.getQrGenerator().generate(this.createSingleItemUrl(t),e)},t.prototype.createSingleSelectUrl=function(t){var e=new g({amount:t.amount,tax:t.tax,reference:t.reference}).addRadio(t.options);return this.getUrl([e])},t.prototype.createSingleSelectQr=function(t,e){return void 0===e&&(e=450),this.getQrGenerator().generate(this.createSingleSelectUrl(t),e)},t.prototype.createSingleSelectWithCostUrl=function(t){var e=new g({amount:t.amount,tax:t.tax,reference:t.reference}).addRadioWithCost(t.options);return this.getUrl([e])},t.prototype.createSingleSelectWithCostQr=function(t,e){return void 0===e&&(e=450),this.getQrGenerator().generate(this.createSingleSelectWithCostUrl(t),e)},t.prototype.createMultiSelectUrl=function(t){var e=new g({amount:t.amount,tax:t.tax,reference:t.reference}).addCheckboxes(t.options);return this.getUrl([e])},t.prototype.createMultiSelectQr=function(t,e){return void 0===e&&(e=450),this.getQrGenerator().generate(this.createMultiSelectUrl(t),e)},t.prototype.createMultiSelectWithCostUrl=function(t){var e=new g({amount:t.amount,tax:t.tax,reference:t.reference}).addCheckboxesWithCost(t.options);return this.getUrl([e])},t.prototype.createMultiSelectWithCostQr=function(t,e){return void 0===e&&(e=450),this.getQrGenerator().generate(this.createMultiSelectWithCostUrl(t),e)},t.prototype.createExternalReferenceUrl=function(t){var e=(new g).makeExternal(t);return this.getUrl([e])},t.prototype.createExternalReferenceQr=function(t,e){return void 0===e&&(e=450),this.getQrGenerator().generate(this.createExternalReferenceUrl(t),e)},t}(),h=(l=function(t,e){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}l(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),I={generate:function(t,e){return new Promise((function(o){var r;try{r=i(0)}catch(t){return console.warn("Optional dependency easyqrcodejs was not installed"),""}var n=document.createElement("div");n.style.position="absolute",n.style.top="-9999%",n.style.left="-9999%",n.style.opacity="0",document.body.appendChild(n);new r(n,{text:t,width:e,height:e,logoWidth:.12*e,logoHeight:.12*e,logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4KPHN2ZyB2ZXJzaW9uPSIxLjIiIHdpZHRoPSI5NC4yM21tIiBoZWlnaHQ9IjkzLjk4bW0iIHZpZXdCb3g9IjAgMCA5NDIzIDkzOTgiIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaWRZTWlkIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHN0cm9rZS13aWR0aD0iMjguMjIyIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOm9vbz0iaHR0cDovL3htbC5vcGVub2ZmaWNlLm9yZy9zdmcvZXhwb3J0IiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeG1sbnM6cHJlc2VudGF0aW9uPSJodHRwOi8vc3VuLmNvbS94bWxucy9zdGFyb2ZmaWNlL3ByZXNlbnRhdGlvbiIgeG1sbnM6c21pbD0iaHR0cDovL3d3dy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iAgPC9nPgogPC9nPgo8L3N2Zz4=",correctLevel:r.CorrectLevel.M,onRenderingEnd:function(t,e){o(e),n.remove()}})}))}},u=function(t){function e(e){return t.call(this,e,I)||this}return h(e,t),e}(c);window.XcooBee||(window.XcooBee={}),window.XcooBee.BrowserXcooBeePaymentSDK||(window.XcooBee.BrowserXcooBeePaymentSDK=u),window.XcooBee.XcooBeePaymentSDK||(window.XcooBee.XcooBeePaymentSDK=c)}]);
!function(t){var e={};function i(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.m=t,i.c=e,i.d=function(t,e,o){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(i.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(o,r,function(e){return t[e]}.bind(null,r));return o},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=3)}([function(t,e,i){(function(t,i){var o;(function(){"use strict";function r(t,e){this.mode=A.MODE_8BIT_BYTE,this.data=t,this.parsedData=[];for(var i=0,o=this.data.length;i<o;i++){var r=[],n=this.data.charCodeAt(i);e?r[0]=n:n>65536?(r[0]=240|(1835008&n)>>>18,r[1]=128|(258048&n)>>>12,r[2]=128|(4032&n)>>>6,r[3]=128|63&n):n>2048?(r[0]=224|(61440&n)>>>12,r[1]=128|(4032&n)>>>6,r[2]=128|63&n):n>128?(r[0]=192|(1984&n)>>>6,r[1]=128|63&n):r[0]=n,this.parsedData.push(r)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}function n(t,e){this.typeNumber=t,this.errorCorrectLevel=e,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}function a(t,e){if(t.length==h)throw new Error(t.length+"/"+e);for(var i=0;i<t.length&&0==t[i];)i++;this.num=new Array(t.length-i+e);for(var o=0;o<t.length-i;o++)this.num[o]=t[o+i]}function g(t,e){this.totalCount=t,this.dataCount=e}function s(){this.buffer=[],this.length=0}function l(){var t=!1,e=navigator.userAgent;if(/android/i.test(e)){t=!0;var i=e.toString().match(/android ([0-9]\.[0-9])/i);i&&i[1]&&(t=parseFloat(i[1]))}return t}function c(t,e){for(var i=e.correctLevel,o=1,r=function(t){var e=encodeURI(t).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return e.length+(e.length!=t.length?3:0)}(t),n=0,a=w.length;n<=a;n++){var g=0;switch(i){case p.L:g=w[n][0];break;case p.M:g=w[n][1];break;case p.Q:g=w[n][2];break;case p.H:g=w[n][3]}if(r<=g)break;o++}if(o>w.length)throw new Error("Too long data");return 0!=e.version&&(o<=e.version?(o=e.version,e.runVersion=o):(console.warn("QR Code version "+e.version+" too small, run version use "+o),e.runVersion=o)),o}var h,I,u="object"==typeof t&&t&&t.Object===Object&&t,d="object"==typeof self&&self&&self.Object===Object&&self,M=u||d||Function("return this")(),D=(e&&!e.nodeType&&e&&"object"==typeof i&&i&&i.nodeType,M.QRCode);r.prototype={getLength:function(t){return this.parsedData.length},write:function(t){for(var e=0,i=this.parsedData.length;e<i;e++)t.put(this.parsedData[e],8)}},n.prototype={addData:function(t,e){var i=new r(t,e);this.dataList.push(i),this.dataCache=null},isDark:function(t,e){if(t<0||this.moduleCount<=t||e<0||this.moduleCount<=e)throw new Error(t+","+e);return this.modules[t][e][0]},getEye:function(t,e){if(t<0||this.moduleCount<=t||e<0||this.moduleCount<=e)throw new Error(t+","+e);var i=this.modules[t][e];if(i[1]){var o="P"+i[1]+"_"+i[2];return"A"==i[2]&&(o="A"+i[1]),{isDark:i[0],type:o}}return null},getModuleCount:function(){return this.moduleCount},make:function(){this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(t,e){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var i=0;i<this.moduleCount;i++){this.modules[i]=new Array(this.moduleCount);for(var o=0;o<this.moduleCount;o++)this.modules[i][o]=[]}this.setupPositionProbePattern(0,0,"TL"),this.setupPositionProbePattern(this.moduleCount-7,0,"BL"),this.setupPositionProbePattern(0,this.moduleCount-7,"TR"),this.setupPositionAdjustPattern("A"),this.setupTimingPattern(),this.setupTypeInfo(t,e),this.typeNumber>=7&&this.setupTypeNumber(t),null==this.dataCache&&(this.dataCache=n.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)},setupPositionProbePattern:function(t,e,i){for(var o=-1;o<=7;o++)if(!(t+o<=-1||this.moduleCount<=t+o))for(var r=-1;r<=7;r++)e+r<=-1||this.moduleCount<=e+r||(0<=o&&o<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==o||6==o)||2<=o&&o<=4&&2<=r&&r<=4?(this.modules[t+o][e+r][0]=!0,this.modules[t+o][e+r][2]=i,this.modules[t+o][e+r][1]=-0==o||-0==r||6==o||6==r?"O":"I"):this.modules[t+o][e+r][0]=!1)},getBestMaskPattern:function(){for(var t=0,e=0,i=0;i<8;i++){this.makeImpl(!0,i);var o=N.getLostPoint(this);(0==i||t>o)&&(t=o,e=i)}return e},createMovieClip:function(t,e,i){var o=t.createEmptyMovieClip(e,i);this.make();for(var r=0;r<this.modules.length;r++)for(var n=1*r,a=0;a<this.modules[r].length;a++){var g=1*a;this.modules[r][a][0]&&(o.beginFill(0,100),o.moveTo(g,n),o.lineTo(g+1,n),o.lineTo(g+1,n+1),o.lineTo(g,n+1),o.endFill())}return o},setupTimingPattern:function(){for(var t=8;t<this.moduleCount-8;t++)null==this.modules[t][6][0]&&(this.modules[t][6][0]=t%2==0);for(var e=8;e<this.moduleCount-8;e++)null==this.modules[6][e][0]&&(this.modules[6][e][0]=e%2==0)},setupPositionAdjustPattern:function(t){for(var e=N.getPatternPosition(this.typeNumber),i=0;i<e.length;i++)for(var o=0;o<e.length;o++){var r=e[i],n=e[o];if(null==this.modules[r][n][0])for(var a=-2;a<=2;a++)for(var g=-2;g<=2;g++)-2==a||2==a||-2==g||2==g||0==a&&0==g?(this.modules[r+a][n+g][0]=!0,this.modules[r+a][n+g][2]=t,this.modules[r+a][n+g][1]=-2==a||-2==g||2==a||2==g?"O":"I"):this.modules[r+a][n+g][0]=!1}},setupTypeNumber:function(t){for(var e=N.getBCHTypeNumber(this.typeNumber),i=0;i<18;i++){var o=!t&&1==(e>>i&1);this.modules[Math.floor(i/3)][i%3+this.moduleCount-8-3][0]=o}for(i=0;i<18;i++){o=!t&&1==(e>>i&1);this.modules[i%3+this.moduleCount-8-3][Math.floor(i/3)][0]=o}},setupTypeInfo:function(t,e){for(var i=this.errorCorrectLevel<<3|e,o=N.getBCHTypeInfo(i),r=0;r<15;r++){var n=!t&&1==(o>>r&1);r<6?this.modules[r][8][0]=n:r<8?this.modules[r+1][8][0]=n:this.modules[this.moduleCount-15+r][8][0]=n}for(r=0;r<15;r++){n=!t&&1==(o>>r&1);r<8?this.modules[8][this.moduleCount-r-1][0]=n:r<9?this.modules[8][15-r-1+1][0]=n:this.modules[8][15-r-1][0]=n}this.modules[this.moduleCount-8][8][0]=!t},mapData:function(t,e){for(var i=-1,o=this.moduleCount-1,r=7,n=0,a=this.moduleCount-1;a>0;a-=2)for(6==a&&a--;;){for(var g=0;g<2;g++)if(null==this.modules[o][a-g][0]){var s=!1;n<t.length&&(s=1==(t[n]>>>r&1)),N.getMask(e,o,a-g)&&(s=!s),this.modules[o][a-g][0]=s,-1==--r&&(n++,r=7)}if((o+=i)<0||this.moduleCount<=o){o-=i,i=-i;break}}}},n.PAD0=236,n.PAD1=17,n.createData=function(t,e,i){for(var o=g.getRSBlocks(t,e),r=new s,a=0;a<i.length;a++){var l=i[a];r.put(l.mode,4),r.put(l.getLength(),N.getLengthInBits(l.mode,t)),l.write(r)}var c=0;for(a=0;a<o.length;a++)c+=o[a].dataCount;if(r.getLengthInBits()>8*c)throw new Error("code length overflow. ("+r.getLengthInBits()+">"+8*c+")");for(r.getLengthInBits()+4<=8*c&&r.put(0,4);r.getLengthInBits()%8!=0;)r.putBit(!1);for(;!(r.getLengthInBits()>=8*c)&&(r.put(n.PAD0,8),!(r.getLengthInBits()>=8*c));)r.put(n.PAD1,8);return n.createBytes(r,o)},n.createBytes=function(t,e){for(var i=0,o=0,r=0,n=new Array(e.length),g=new Array(e.length),s=0;s<e.length;s++){var l=e[s].dataCount,c=e[s].totalCount-l;o=Math.max(o,l),r=Math.max(r,c),n[s]=new Array(l);for(var h=0;h<n[s].length;h++)n[s][h]=255&t.buffer[h+i];i+=l;var I=N.getErrorCorrectPolynomial(c),u=new a(n[s],I.getLength()-1).mod(I);g[s]=new Array(I.getLength()-1);for(h=0;h<g[s].length;h++){var d=h+u.getLength()-g[s].length;g[s][h]=d>=0?u.get(d):0}}var M=0;for(h=0;h<e.length;h++)M+=e[h].totalCount;var D=new Array(M),A=0;for(h=0;h<o;h++)for(s=0;s<e.length;s++)h<n[s].length&&(D[A++]=n[s][h]);for(h=0;h<r;h++)for(s=0;s<e.length;s++)h<g[s].length&&(D[A++]=g[s][h]);return D};for(var A={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},p={L:1,M:0,Q:3,H:2},C={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},N={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(t){for(var e=t<<10;N.getBCHDigit(e)-N.getBCHDigit(N.G15)>=0;)e^=N.G15<<N.getBCHDigit(e)-N.getBCHDigit(N.G15);return(t<<10|e)^N.G15_MASK},getBCHTypeNumber:function(t){for(var e=t<<12;N.getBCHDigit(e)-N.getBCHDigit(N.G18)>=0;)e^=N.G18<<N.getBCHDigit(e)-N.getBCHDigit(N.G18);return t<<12|e},getBCHDigit:function(t){for(var e=0;0!=t;)e++,t>>>=1;return e},getPatternPosition:function(t){return N.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,i){switch(t){case C.PATTERN000:return(e+i)%2==0;case C.PATTERN001:return e%2==0;case C.PATTERN010:return i%3==0;case C.PATTERN011:return(e+i)%3==0;case C.PATTERN100:return(Math.floor(e/2)+Math.floor(i/3))%2==0;case C.PATTERN101:return e*i%2+e*i%3==0;case C.PATTERN110:return(e*i%2+e*i%3)%2==0;case C.PATTERN111:return(e*i%3+(e+i)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new a([1],0),i=0;i<t;i++)e=e.multiply(new a([1,y.gexp(i)],0));return e},getLengthInBits:function(t,e){if(1<=e&&e<10)switch(t){case A.MODE_NUMBER:return 10;case A.MODE_ALPHA_NUM:return 9;case A.MODE_8BIT_BYTE:case A.MODE_KANJI:return 8;default:throw new Error("mode:"+t)}else if(e<27)switch(t){case A.MODE_NUMBER:return 12;case A.MODE_ALPHA_NUM:return 11;case A.MODE_8BIT_BYTE:return 16;case A.MODE_KANJI:return 10;default:throw new Error("mode:"+t)}else{if(!(e<41))throw new Error("type:"+e);switch(t){case A.MODE_NUMBER:return 14;case A.MODE_ALPHA_NUM:return 13;case A.MODE_8BIT_BYTE:return 16;case A.MODE_KANJI:return 12;default:throw new Error("mode:"+t)}}},getLostPoint:function(t){for(var e=t.getModuleCount(),i=0,o=0;o<e;o++)for(var r=0;r<e;r++){for(var n=0,a=t.isDark(o,r),g=-1;g<=1;g++)if(!(o+g<0||e<=o+g))for(var s=-1;s<=1;s++)r+s<0||e<=r+s||0==g&&0==s||a==t.isDark(o+g,r+s)&&n++;n>5&&(i+=3+n-5)}for(o=0;o<e-1;o++)for(r=0;r<e-1;r++){var l=0;t.isDark(o,r)&&l++,t.isDark(o+1,r)&&l++,t.isDark(o,r+1)&&l++,t.isDark(o+1,r+1)&&l++,0!=l&&4!=l||(i+=3)}for(o=0;o<e;o++)for(r=0;r<e-6;r++)t.isDark(o,r)&&!t.isDark(o,r+1)&&t.isDark(o,r+2)&&t.isDark(o,r+3)&&t.isDark(o,r+4)&&!t.isDark(o,r+5)&&t.isDark(o,r+6)&&(i+=40);for(r=0;r<e;r++)for(o=0;o<e-6;o++)t.isDark(o,r)&&!t.isDark(o+1,r)&&t.isDark(o+2,r)&&t.isDark(o+3,r)&&t.isDark(o+4,r)&&!t.isDark(o+5,r)&&t.isDark(o+6,r)&&(i+=40);var c=0;for(r=0;r<e;r++)for(o=0;o<e;o++)t.isDark(o,r)&&c++;return i+Math.abs(100*c/e/e-50)/5*10}},y={glog:function(t){if(t<1)throw new Error("glog("+t+")");return y.LOG_TABLE[t]},gexp:function(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return y.EXP_TABLE[t]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},f=0;f<8;f++)y.EXP_TABLE[f]=1<<f;for(f=8;f<256;f++)y.EXP_TABLE[f]=y.EXP_TABLE[f-4]^y.EXP_TABLE[f-5]^y.EXP_TABLE[f-6]^y.EXP_TABLE[f-8];for(f=0;f<255;f++)y.LOG_TABLE[y.EXP_TABLE[f]]=f;a.prototype={get:function(t){return this.num[t]},getLength:function(){return this.num.length},multiply:function(t){for(var e=new Array(this.getLength()+t.getLength()-1),i=0;i<this.getLength();i++)for(var o=0;o<t.getLength();o++)e[i+o]^=y.gexp(y.glog(this.get(i))+y.glog(t.get(o)));return new a(e,0)},mod:function(t){if(this.getLength()-t.getLength()<0)return this;for(var e=y.glog(this.get(0))-y.glog(t.get(0)),i=new Array(this.getLength()),o=0;o<this.getLength();o++)i[o]=this.get(o);for(o=0;o<t.getLength();o++)i[o]^=y.gexp(y.glog(t.get(o))+e);return new a(i,0).mod(t)}},g.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],g.getRSBlocks=function(t,e){var i=g.getRsBlockTable(t,e);if(i==h)throw new Error("bad rs block @ typeNumber:"+t+"/errorCorrectLevel:"+e);for(var o=i.length/3,r=[],n=0;n<o;n++)for(var a=i[3*n+0],s=i[3*n+1],l=i[3*n+2],c=0;c<a;c++)r.push(new g(s,l));return r},g.getRsBlockTable=function(t,e){switch(e){case p.L:return g.RS_BLOCK_TABLE[4*(t-1)+0];case p.M:return g.RS_BLOCK_TABLE[4*(t-1)+1];case p.Q:return g.RS_BLOCK_TABLE[4*(t-1)+2];case p.H:return g.RS_BLOCK_TABLE[4*(t-1)+3];default:return h}},s.prototype={get:function(t){var e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(var i=0;i<e;i++)this.putBit(1==(t>>>e-i-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]],T=function(){var t=function(t,e){this._el=t,this._htOption=e};return t.prototype.draw=function(t){function e(t,e){var i=document.createElementNS("http://www.w3.org/2000/svg",t);for(var o in e)e.hasOwnProperty(o)&&i.setAttribute(o,e[o]);return i}var i=this._htOption,o=this._el,r=t.getModuleCount();Math.floor(i.width/r),Math.floor(i.height/r),this.clear();var n=e("svg",{viewBox:"0 0 "+String(r)+" "+String(r),width:"100%",height:"100%",fill:i.colorLight});n.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),o.appendChild(n),n.appendChild(e("rect",{fill:i.colorLight,width:"100%",height:"100%"})),n.appendChild(e("rect",{fill:i.colorDark,width:"1",height:"1",id:"template"}));for(var a=0;a<r;a++)for(var g=0;g<r;g++)if(t.isDark(a,g)){var s=e("use",{x:String(g),y:String(a)});s.setAttributeNS("http://www.w3.org/1999/xlink","href","#template"),n.appendChild(s)}},t.prototype.clear=function(){for(;this._el.hasChildNodes();)this._el.removeChild(this._el.lastChild)},t}(),m="svg"===document.documentElement.tagName.toLowerCase()?T:"undefined"!=typeof CanvasRenderingContext2D?function(){function t(){try{var t=this._elCanvas.toDataURL("image/png");this._elImage.src=t,this.dataURL=t,this._elImage.style.display="inline",this._elCanvas.style.display="none"}catch(t){console.error(t)}this._htOption.onRenderingEnd&&(this.dataURL||console.error("Can not get base64 data, please check: 1. published the page and image to the server 2. The image request support CORS"),this._htOption.onRenderingEnd(this._htOption,this.dataURL))}function e(t,e){var i=this;if(i._fFail=e,i._fSuccess=t,null===i._bSupportDataURI){var o=document.createElement("img"),r=function(){i._bSupportDataURI=!1,i._fFail&&i._fFail.call(i)};return o.onabort=r,o.onerror=r,o.onload=function(){i._bSupportDataURI=!0,i._fSuccess&&i._fSuccess.call(i)},void(o.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==")}!0===i._bSupportDataURI&&i._fSuccess?i._fSuccess.call(i):!1===i._bSupportDataURI&&i._fFail&&i._fFail.call(i)}if(M._android&&M._android<=2.1){var i=1/window.devicePixelRatio,o=CanvasRenderingContext2D.prototype.drawImage;CanvasRenderingContext2D.prototype.drawImage=function(t,e,r,n,a,g,s,l,c){if("nodeName"in t&&/img/i.test(t.nodeName))for(var h=arguments.length-1;h>=1;h--)arguments[h]=arguments[h]*i;else void 0===l&&(arguments[1]*=i,arguments[2]*=i,arguments[3]*=i,arguments[4]*=i);o.apply(this,arguments)}}var r=function(t,e){this._bIsPainted=!1,this._android=l(),this._htOption=e,this._elCanvas=document.createElement("canvas"),t.appendChild(this._elCanvas),this._el=t,this._oContext=this._elCanvas.getContext("2d"),this._bIsPainted=!1,this._elImage=document.createElement("img"),this._elImage.alt="Scan me!",this._elImage.style.display="none",this._el.appendChild(this._elImage),this._bSupportDataURI=null,this.dataURL=null};return r.prototype.draw=function(t){function e(){r.lineWidth=0,r.fillStyle=n.quietZoneColor,r.fillRect(0,0,l._elCanvas.width,n.quietZone),r.fillRect(0,n.quietZone,n.quietZone,l._elCanvas.height-2*n.quietZone),r.fillRect(l._elCanvas.width-n.quietZone,n.quietZone,n.quietZone,l._elCanvas.height-2*n.quietZone),r.fillRect(0,l._elCanvas.height-n.quietZone,l._elCanvas.width,n.quietZone)}function i(t){n.onRenderingStart&&n.onRenderingStart(n);for(var i=0;i<a;i++)for(var o=0;o<a;o++){var l=o*g+n.quietZone,c=i*s+n.quietZone,h=t.isDark(i,o),I=t.getEye(i,o);if(I){h=I.isDark;var u=I.type,d=n[u]||n[u.substring(0,2)]||n.colorDark;r.lineWidth=0,r.strokeStyle=h?d:n.colorLight,r.fillStyle=h?d:n.colorLight,r.fillRect(l,n.titleHeight+c,g,s)}else{r.lineWidth=0,r.strokeStyle=h?n.colorDark:n.colorLight,r.fillStyle=h?n.colorDark:n.colorLight;var M=n.dotScale;if(6==i){M=1;var D=n.timing_H||n.timing||n.colorDark;r.fillStyle=h?D:n.colorLight,r.strokeStyle=r.fillStyle,r.fillRect(l+g*(1-M)/2,n.titleHeight+c+s*(1-M)/2,g*M,s*M)}else if(6==o){M=1;var A=n.timing_V||n.timing||n.colorDark;r.fillStyle=h?A:n.colorLight,r.strokeStyle=r.fillStyle,r.fillRect(l+g*(1-M)/2,n.titleHeight+c+s*(1-M)/2,g*M,s*M)}else n.backgroundImage?(n.autoColor?(r.strokeStyle=h?"rgba(0, 0, 0, .6)":"rgba(255, 255, 255, .7)",r.fillStyle=h?"rgba(0, 0, 0, .6)":"rgba(255, 255, 255, .7)"):(r.strokeStyle=h?n.colorDark:"rgba(0,0,0,0)",r.fillStyle=h?n.colorDark:"rgba(0,0,0,0)",r.strokeStyle=r.fillStyle),r.fillRect(l+g*(1-M)/2,n.titleHeight+c+s*(1-M)/2,g*M,s*M)):(r.strokeStyle=r.fillStyle,r.fillRect(l+g*(1-M)/2,n.titleHeight+c+s*(1-M)/2,g*M,s*M))}1==n.dotScale||I||(r.strokeStyle=n.colorLight)}if(n.title&&(r.fillStyle=n.titleBackgroundColor,r.fillRect(0,0,this._elCanvas.width,n.titleHeight+n.quietZone),r.font=n.titleFont,r.fillStyle=n.titleColor,r.textAlign="center",r.fillText(n.title,this._elCanvas.width/2,+n.quietZone+n.titleTop)),n.subTitle&&(r.font=n.subTitleFont,r.fillStyle=n.subTitleColor,r.fillText(n.subTitle,this._elCanvas.width/2,+n.quietZone+n.subTitleTop)),n.logo){var p=new Image,C=this;p.onload=function(){!function(t){var i=Math.round(n.width/3.5),o=Math.round(n.height/3.5);i!==o&&(i=o),n.logoWidth&&(i=Math.round(n.logoWidth)),n.logoHeight&&(o=Math.round(n.logoHeight));var a,g,s=(n.width+2*n.quietZone-i)/2,l=(n.height+n.titleHeight+2*n.quietZone-o)/2;n.logoBackgroundTransparent||(r.fillStyle=n.logoBackgroundColor,r.fillRect(s,l,i,o)),void 0===t.naturalWidth?(a=t.width,g=t.height):(a=t.naturalWidth,g=t.naturalHeight);var c=Math.min(i/a,o/g),h=a*c,I=g*c;r.drawImage(t,s+(i-h)/2,l+(o-I)/2,h,I),n.quietZone>0&&n.quietZoneColor&&e(),C._bIsPainted=!0,C.makeImage()}(p)},p.onerror=function(t){console.error(t)},p.src=n.logo}else this._bIsPainted=!0,this.makeImage()}var o=this._elImage,r=this._oContext,n=this._htOption;n.title||n.subTitle||(n.height-=n.titleHeight,n.titleHeight=0);var a=t.getModuleCount(),g=Math.round(n.width/a),s=Math.round((n.height-n.titleHeight)/a);n.width=g*a,n.height=s*a+n.titleHeight,n.quietZone=Math.round(n.quietZone),this._elCanvas.width=n.width+2*n.quietZone,this._elCanvas.height=n.height+2*n.quietZone,o.style.display="none",this.clear(),r.lineWidth=0,r.fillStyle=n.colorLight,r.fillRect(0,0,this._elCanvas.width,this._elCanvas.height);var l=this;if(n.backgroundImage){var c=new Image;c.onload=function(){r.globalAlpha=1,r.globalAlpha=n.backgroundImageAlpha,r.drawImage(c,0,n.titleHeight,n.width+2*n.quietZone,n.height+2*n.quietZone-n.titleHeight),r.globalAlpha=1,i.call(l,t)},c.src=n.backgroundImage}else i.call(l,t)},r.prototype.makeImage=function(){this._bIsPainted&&e.call(this,t)},r.prototype.isPainted=function(){return this._bIsPainted},r.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height),this._bIsPainted=!1},r.prototype.remove=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height),this._bIsPainted=!1,this._el.innerHTML=""},r.prototype.round=function(t){return t?Math.floor(1e3*t)/1e3:t},r}():function(){var t=function(t,e){this._el=t,this._htOption=e};return t.prototype.draw=function(t){var e=this._htOption,i=this._el,o=t.getModuleCount(),r=Math.round(e.width/o),n=Math.round((e.height-e.titleHeight)/o);this._htOption.width=r*o,this._htOption.height=n*o+e.titleHeight,this._htOption.quietZone=Math.round(this._htOption.quietZone);var a=[],g="",s=Math.round(r*e.dotScale),l=Math.round(n*e.dotScale);s<4&&(s=4,l=4);var c=e.colorDark,h=e.colorLight;if(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="transparent";var I='<div style="display:inline-block; z-index:-10;position:absolute;"><img src="'+e.backgroundImage+'" widht="'+(e.width+2*e.quietZone)+'" height="'+(e.height+2*e.quietZone)+'" style="opacity:'+e.backgroundImageAlpha+";filter:alpha(opacity="+100*e.backgroundImageAlpha+'); "/></div>';a.push(I)}if(e.quietZone&&(g="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('<div style="font-size:0;'+g+'">'),a.push('<table style="font-size:0;border:0;border-collapse:collapse; margin-top:'+e.quietZone+'px;" border="0" cellspacing="0" cellspadding="0" align="center" valign="middle">'),a.push('<tr height="'+e.titleHeight+'" align="center"><td style="border:0;border-collapse:collapse;margin:0;padding:0" colspan="'+o+'">'),e.title){var u=e.titleColor,d=e.titleFont;a.push('<div style="width:100%;margin-top:'+e.titleTop+"px;color:"+u+";font:"+d+";background:"+e.titleBackgroundColor+'">'+e.title+"</div>")}e.subTitle&&a.push('<div style="width:100%;margin-top:'+(e.subTitleTop-e.titleTop)+"px;color:"+e.subTitleColor+"; font:"+e.subTitleFont+'">'+e.subTitle+"</div>"),a.push("</td></tr>");for(var M=0;M<o;M++){a.push('<tr style="border:0; padding:0; margin:0;" height="7">');for(var D=0;D<o;D++){var A=t.isDark(M,D),p=t.getEye(M,D);if(p){A=p.isDark;var C=p.type,N=e[C]||e[C.substring(0,2)]||c;a.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+r+"px;height:"+n+'px;"><span style="width:'+r+"px;height:"+n+"px;background-color:"+(A?N:h)+';display:inline-block"></span></td>')}else{var y=e.colorDark;6==M?(y=e.timing_H||e.timing||c,a.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+r+"px;height:"+n+"px;background-color:"+(A?y:h)+';"></td>')):6==D?(y=e.timing_V||e.timing||c,a.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+r+"px;height:"+n+"px;background-color:"+(A?y:h)+';"></td>')):a.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+r+"px;height:"+n+'px;"><div style="display:inline-block;width:'+s+"px;height:"+l+"px;background-color:"+(A?y:e.colorLight)+';"></div></td>')}}a.push("</tr>")}if(a.push("</table>"),a.push("</div>"),e.logo){(new Image).src=e.logo;var f=e.width/3.5,w=e.height/3.5;f!=w&&(f=w),e.logoWidth&&(f=e.logoWidth),e.logoHeight&&(w=e.logoHeight);var T="position:relative; z-index:1;display:table-cell;top:-"+((e.height-e.titleHeight)/2+w/2+e.quietZone)+"px;text-align:center; width:"+f+"px; height:"+w+"px;line-height:"+f+"px; vertical-align: middle;";e.logoBackgroundTransparent||(T+="background:"+e.logoBackgroundColor),a.push('<div style="'+T+'"><img src="'+e.logo+'" style="max-width: '+f+"px; max-height: "+w+'px;" /> <div style=" display: none; width:1px;margin-left: -1px;"></div></div>')}e.onRenderingStart&&e.onRenderingStart(e),i.innerHTML=a.join("");var m=i.childNodes[0],b=(e.width-m.offsetWidth)/2,x=(e.height-m.offsetHeight)/2;b>0&&x>0&&(m.style.margin=x+"px "+b+"px"),this._htOption.onRenderingEnd&&this._htOption.onRenderingEnd(this._htOption,null)},t.prototype.clear=function(){this._el.innerHTML=""},t}();(I=function(t,e){if(this._htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:p.H,dotScale:1,quietZone:0,quietZoneColor:"transparent",title:"",titleFont:"bold 16px Arial",titleColor:"#000000",titleBackgroundColor:"#ffffff",titleHeight:0,titleTop:30,subTitle:"",subTitleFont:"14px Arial",subTitleColor:"#4F4F4F",subTitleTop:60,logo:h,logoWidth:h,logoHeight:h,logoBackgroundColor:"#ffffff",logoBackgroundTransparent:!1,PO:h,PI:h,PO_TL:h,PI_TL:h,PO_TR:h,PI_TR:h,PO_BL:h,PI_BL:h,AO:h,AI:h,timing:h,timing_H:h,timing_V:h,backgroundImage:h,backgroundImageAlpha:1,autoColor:!1,onRenderingStart:h,onRenderingEnd:h,version:0,tooltip:!1,binary:!1},"string"==typeof e&&(e={text:e}),e)for(var i in e)this._htOption[i]=e[i];(this._htOption.version<0||this._htOption.version>40)&&(console.warn("QR Code version '"+this._htOption.version+"' is invalidate, reset to 0"),this._htOption.version=0),(this._htOption.dotScale<0||this._htOption.dotScale>1)&&(console.warn(this._htOption.dotScale+" , is invalidate, dotScale must greater than 0, less than or equal to 1, now reset to 1. "),this._htOption.dotScale=1),(this._htOption.backgroundImageAlpha<0||this._htOption.backgroundImageAlpha>1)&&(console.warn(this._htOption.backgroundImageAlpha+" , is invalidate, backgroundImageAlpha must between 0 and 1, now reset to 1. "),this._htOption.backgroundImageAlpha=1),this._htOption.height=this._htOption.height+this._htOption.titleHeight,"string"==typeof t&&(t=document.getElementById(t)),this._htOption.useSVG&&(m=T),this._android=l(),this._el=t,this._oQRCode=null,this._oDrawing=new m(this._el,this._htOption),this._htOption.text&&this.makeCode(this._htOption.text)}).prototype.makeCode=function(t){this._oQRCode=new n(c(t,this._htOption),this._htOption.correctLevel),this._oQRCode.addData(t,this._htOption.binary),this._oQRCode.make(),this._htOption.tooltip&&(this._el.title=t),this._oDrawing.draw(this._oQRCode)},I.prototype.makeImage=function(){"function"==typeof this._oDrawing.makeImage&&(!this._android||this._android>=3)&&this._oDrawing.makeImage()},I.prototype.clear=function(){this._oDrawing.remove()},I.prototype.resize=function(t,e){this._htOption.width=t,this._htOption.height=e,this._oDrawing.draw(this._oQRCode)},I.prototype.noConflict=function(){return M.QRCode===this&&(M.QRCode=D),I},I.CorrectLevel=p,void 0===(o=function(){return I}.apply(e,[]))||(i.exports=o)}).call(this)}).call(this,i(1),i(2)(t))},function(t,e){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,i){"use strict";i.r(e),i.d(e,"BrowserXcooBeePaymentSDK",(function(){return u}));var o,r=function(t){return btoa(unescape(encodeURIComponent(t)))};!function(t){t[t.addMinOrFixed=1]="addMinOrFixed",t[t.addMaxOrFixed=2]="addMaxOrFixed",t[t.addSubRadio=3]="addSubRadio",t[t.addSubRadioWithExtraCost=4]="addSubRadioWithExtraCost",t[t.addSubCheckbox=5]="addSubCheckbox",t[t.addSubCheckboxWithExtraCost=6]="addSubCheckboxWithExtraCost",t[t.setTip=7]="setTip",t[t.externalPricing=8]="externalPricing",t[t.userEntry=9]="userEntry",t[t.setTotal=10]="setTotal"}(o||(o={}));var n=[o.externalPricing,o.userEntry,o.setTotal,o.setTip],a=function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;var o=Array(t),r=0;for(e=0;e<i;e++)for(var n=arguments[e],a=0,g=n.length;a<g;a++,r++)o[r]=n[a];return o},g=function(){function t(t){var e=this;this.logic=[],t&&(this.amount=t.amount,this.tax=t.tax,this.reference=t.reference,t.logic&&(Array.isArray(t.logic)?t.logic:[t.logic]).forEach((function(t){return e.addLogic(t)})))}return t.validateLogic=function(t){switch(t.a){case o.addMinOrFixed:var e=t.r,i=t.o,r=t.m;return e?e.length>40?"Reference max length is 40 chars":i||r?null:"Percentage or min fixed amount required":"Reference is required";case o.addMaxOrFixed:e=t.r,i=t.o;var n=t.M;return e?e.length>40?"Reference max length is 40 chars":i||n?null:"Percentage or max fixed amount required":"Reference is required";case o.addSubCheckbox:case o.addSubRadio:e=t.r;return!Array.isArray(e)||e.some((function(t){return"string"!=typeof t}))?"Options expected to be string[]":e.length>25?"Max options allowed is 25":e.some((function(t){return t.length>40}))?"Reference max length is 40 chars":null;case o.addSubRadioWithExtraCost:case o.addSubCheckboxWithExtraCost:e=t.r;return!Array.isArray(e)||e.some((function(t){return!Array.isArray(t)||"string"!=typeof t[0]||"number"!=typeof t[1]}))?"Options expected to be [string, number][]":e.length>25?"Max options allowed is 25":e.some((function(t){return t[0].length>40}))?"Reference max length is 40 chars":null;case o.externalPricing:return(e=t.r)?e.length>40?"Price code max length is 40 chars":null:"Price code is required";case o.userEntry:case o.setTotal:case o.setTip:return null;default:return"Unknown action"}},t.prototype.getKey=function(){return this.reference+"_"+this.amount+"_"+this.tax},t.prototype.setAmount=function(t){return this.amount=t,this},t.prototype.setTax=function(t){return this.tax=t,this},t.prototype.setReference=function(t){return this.reference=t,this},t.prototype.fromRaw=function(t){var e=this;return this.amount=t["0-3"],this.tax=t["0-5"],this.reference=t["0-6"],this.logic=[],t.l&&(Array.isArray(t.l)?t.l:[t.l]).forEach((function(t){return e.addLogic(t)})),this},t.prototype.hasAction=function(t){return this.logic.some((function(e){return e.a===t}))},t.prototype.validate=function(){return this.hasAction(o.setTip)?null:this.amount||!this.logic.length||this.hasAction(o.externalPricing)||this.hasAction(o.userEntry)||this.hasAction(o.setTip)||this.hasAction(o.setTotal)?!/(undefined|null|^$)/.test(String(this.amount))&&(this.amount<.05||this.amount>9999.99)?"Amount must be in range 0.05 - 9999.99":this.reference||!this.logic.length||this.hasAction(o.externalPricing)||this.hasAction(o.setTip)||this.hasAction(o.setTotal)?this.reference&&this.reference.length>40?"Reference max length is 40 chars":void 0:"Reference required":"Amount required"},t.prototype.addLogic=function(e){var i=t.validateLogic(e);if(i)throw new Error(i);return e.a===o.setTip?(this.logic=[{a:o.setTip}],this):(this.hasAction(o.setTip)&&(this.logic=this.logic.filter((function(t){return t.a!==o.setTip}))),-1!==n.indexOf(e.a)&&this.logic.some((function(t){return-1!==n.indexOf(t.a)}))&&(this.logic=this.logic.filter((function(t){return-1===n.indexOf(t.a)}))),this.logic=a(this.logic.filter((function(t){return t.a!==e.a&&(!e.r||t.r!==e.r)})),[e]),this)},t.prototype.clearLogic=function(){return this.logic=[],this},t.prototype.makeTip=function(){return this.addLogic({a:o.setTip})},t.prototype.makeTotal=function(){return this.addLogic({a:o.setTotal})},t.prototype.makeUserEntry=function(){return this.addLogic({a:o.userEntry})},t.prototype.makeExternal=function(t){return this.addLogic({a:o.externalPricing,r:t})},t.prototype.addPercentageOrMin=function(t){return this.addLogic({a:o.addMinOrFixed,r:t.reference,o:t.percentage,m:t.min})},t.prototype.addPercentageOrMax=function(t){return this.addLogic({a:o.addMaxOrFixed,r:t.reference,o:t.percentage,M:t.max})},t.prototype.addRadio=function(t){return this.addLogic({a:o.addSubRadio,r:t})},t.prototype.addRadioWithCost=function(t){return this.addLogic({a:o.addSubRadioWithExtraCost,r:t})},t.prototype.addCheckboxes=function(t){return this.addLogic({a:o.addSubCheckbox,r:t})},t.prototype.addCheckboxesWithCost=function(t){return this.addLogic({a:o.addSubCheckboxWithExtraCost,r:t})},t.prototype.toJSON=function(){var t=this.validate();if(t)throw new Error(t);var e={};return!this.amount||this.hasAction(o.setTip)||this.hasAction(o.userEntry)||(e["0-3"]=this.amount),this.tax&&!this.hasAction(o.setTip)&&(e["0-5"]=this.tax),this.reference&&!this.hasAction(o.setTip)&&(e["0-6"]=this.reference),this.logic.length&&(e.l=this.logic),1===this.logic.length&&(e.l=this.logic[0]),e},t}();function s(t){return JSON.stringify(function(t){var e,i,r={};return t.forEach((function(t){r[t.getKey()]=t,t.hasAction(o.setTip)&&(e=t),t.hasAction(o.setTotal)&&(i=t)})),i?[e,i].filter(Boolean):Object.keys(r).map((function(t){return r[t]}))}(t))}var l,c=function(){function t(t,e){if(!t)throw new Error("config is required");if(!t.campaignId)throw new Error("campaignId is required");if(t.xcoobeeDeviceId&&t.xcoobeeDeviceId.length>200)throw new Error("Max xcoobeeDeviceId length is 200");if(t.deviceId&&t.deviceId.length>200)throw new Error("Max deviceId length is 200");if(t.source&&t.source.length>10)throw new Error("Max source length is 10");t.xcoobeeDeviceId&&t.deviceId&&console.warn("deviceId and xcoobeeDeviceId both provided. xcoobeeDeviceId will be used"),this.campaignId=t.campaignId,this.formId=t.formId,this.deviceId=t.deviceId,this.xcoobeeDeviceId=t.xcoobeeDeviceId,this.source=t.source,this.qrGenerator=e}return t.prototype.getQrGenerator=function(){if(!this.qrGenerator)throw new Error("qrGenerator was not provided");return this.qrGenerator},t.prototype.getUrl=function(t){void 0===t&&(t=[]);var e=t.length?r(s(t)):"";if(e.length>1800)throw new Error("Data package is too large, max size: 1800, received: "+e.length);var i={d:e,s:this.source,did:this.xcoobeeDeviceId};i.did||(i.ed=this.deviceId);var o=Object.keys(i).filter((function(t){return i[t]})).map((function(t){return t+"="+i[t]})).join("&"),n="https://app.xcoobee.net/securePay/"+this.campaignId+(this.formId?"/"+this.formId:"")+(o?"?"+o:"");if(n.length>2048)throw new Error("Invalid url, length is more than 2048 chars");return n},t.prototype.createPayUrl=function(t){var e=new g({amount:t.amount,tax:t.tax,reference:t.reference}).makeTotal();return this.getUrl([e])},t.prototype.createPayQr=function(t,e){return void 0===e&&(e=450),this.getQrGenerator().generate(this.createPayUrl(t),e)},t.prototype.createPayUrlWithTip=function(t){var e=new g({amount:t.amount,tax:t.tax,reference:t.reference}).makeTotal(),i=(new g).makeTip();return this.getUrl([e,i])},t.prototype.createPayQrWithTip=function(t,e){return void 0===e&&(e=450),this.getQrGenerator().generate(this.createPayUrlWithTip(t),e)},t.prototype.createSingleItemUrl=function(t){var e=new g({amount:t.amount,tax:t.tax,reference:t.reference});return this.getUrl([e])},t.prototype.createSingleItemQr=function(t,e){return void 0===e&&(e=450),this.getQrGenerator().generate(this.createSingleItemUrl(t),e)},t.prototype.createSingleSelectUrl=function(t){var e=new g({amount:t.amount,tax:t.tax,reference:t.reference}).addRadio(t.options);return this.getUrl([e])},t.prototype.createSingleSelectQr=function(t,e){return void 0===e&&(e=450),this.getQrGenerator().generate(this.createSingleSelectUrl(t),e)},t.prototype.createSingleSelectWithCostUrl=function(t){var e=new g({amount:t.amount,tax:t.tax,reference:t.reference}).addRadioWithCost(t.options);return this.getUrl([e])},t.prototype.createSingleSelectWithCostQr=function(t,e){return void 0===e&&(e=450),this.getQrGenerator().generate(this.createSingleSelectWithCostUrl(t),e)},t.prototype.createMultiSelectUrl=function(t){var e=new g({amount:t.amount,tax:t.tax,reference:t.reference}).addCheckboxes(t.options);return this.getUrl([e])},t.prototype.createMultiSelectQr=function(t,e){return void 0===e&&(e=450),this.getQrGenerator().generate(this.createMultiSelectUrl(t),e)},t.prototype.createMultiSelectWithCostUrl=function(t){var e=new g({amount:t.amount,tax:t.tax,reference:t.reference}).addCheckboxesWithCost(t.options);return this.getUrl([e])},t.prototype.createMultiSelectWithCostQr=function(t,e){return void 0===e&&(e=450),this.getQrGenerator().generate(this.createMultiSelectWithCostUrl(t),e)},t.prototype.createExternalReferenceUrl=function(t){var e=(new g).makeExternal(t);return this.getUrl([e])},t.prototype.createExternalReferenceQr=function(t,e){return void 0===e&&(e=450),this.getQrGenerator().generate(this.createExternalReferenceUrl(t),e)},t}(),h=(l=function(t,e){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}l(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),I={generate:function(t,e){return new Promise((function(o){var r;try{r=i(0)}catch(t){return console.warn("Optional dependency easyqrcodejs was not installed"),""}var n=document.createElement("div");n.style.position="absolute",n.style.top="-9999%",n.style.left="-9999%",n.style.opacity="0",document.body.appendChild(n);new r(n,{text:t,width:e,height:e,logoWidth:.12*e,logoHeight:.12*e,logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4KPHN2ZyB2ZXJzaW9uPSIxLjIiIHdpZHRoPSI5NC4yM21tIiBoZWlnaHQ9IjkzLjk4bW0iIHZpZXdCb3g9IjAgMCA5NDIzIDkzOTgiIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaWRZTWlkIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHN0cm9rZS13aWR0aD0iMjguMjIyIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOm9vbz0iaHR0cDovL3htbC5vcGVub2ZmaWNlLm9yZy9zdmcvZXhwb3J0IiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeG1sbnM6cHJlc2VudGF0aW9uPSJodHRwOi8vc3VuLmNvbS94bWxucy9zdGFyb2ZmaWNlL3ByZXNlbnRhdGlvbiIgeG1sbnM6c21pbD0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9TTUlMMjAvIiB4bWxuczphbmltPSJ1cm46b2FzaXM6bmFtZXM6dGM6b3BlbmRvY3VtZW50OnhtbG5zOmFuaW1hdGlvbjoxLjAiIHhtbDpzcGFjZT0icHJlc2VydmUiPgogPGRlZnMgY2xhc3M9IkNsaXBQYX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RpbmdCb3giIHN0cm9rZT0ibm9uZSIgZmlsbD0ibm9uZSIgeD0iNTY0IiB5PSI0MzMzIiB3aWR0aD0iMTk4OSIgaGVpZ2h0PSIzMjg4Ii8+CiAgICAgICAgPHBhdGggZmlsbD0icmdiKDI1NSwyNTUsMjU1KSIgc3Ryb2tlPSJub25lIiBkPSJNIDkwMyw3MjkxIEMgMTgxOCw4MjA0IDI1NTEsNjkyNSAyNTUxLDY5MjUgTCAyNTUxLDQzMzQgQyAyNTUxLDQzMzQgLTQxNyw1OTc4IDkwMyw3MjkxIFoiLz4KICAgICAgIDwvZz4KICAgICAgPC9nPgogICAgICA8ZyBjbGFzcz0iY29tLnN1bi5zdGFyLmRyYXdpbmcuQ2xvc2VkQmV6aWVyU2hhcGUiPgogICAgICAgPGcgaWQ9ImlkMTMiPgogICAgICAgIDxyZWN0IGNsYXNzPSJCb3VuZGluZ0JveCIgc3Ryb2tlPSJub25lIiBmaWxsPSJub25lIiB4PSI2ODcyIiB5PSI0MzMzIiB3aWR0aD0iMTk4OSIgaGVpZ2h0PSIzMjg4Ii8+CiAgICAgICAgPHBhdGggZmlsbD0icmdiKDI1NSwyNTUsMjU1KSIgc3Ryb2tlPSJub25lIiBkPSJNIDY4NzIsNDMzNCBMIDY4NzIsNjkyNSBDIDY4NzIsNjkyNSA3NjA1LDgyMDQgODUyMSw3MjkxIDg3NTQsNzA1OSA4ODUzLDY4MTggODg1OSw2NTc2IEwgODg1OSw2NTczIEMgODg4MSw1NDQ3IDY4NzIsNDMzNCA2ODcyLDQzMzQgWiIvPgogICAgICAgPC9nPgogICAgICA8L2c+CiAgICAgPC9nPgogICAgPC9nPgogICA8L2c+CiAgPC9nPgogPC9nPgo8L3N2Zz4=",correctLevel:r.CorrectLevel.M,onRenderingEnd:function(t,e){o(e),n.remove()}})}))}},u=function(t){function e(e){return t.call(this,e,I)||this}return h(e,t),e}(c);window.XcooBee||(window.XcooBee={}),window.XcooBee.BrowserXcooBeePaymentSDK||(window.XcooBee.BrowserXcooBeePaymentSDK=u),window.XcooBee.XcooBeePaymentSDK||(window.XcooBee.XcooBeePaymentSDK=c)}]);

@@ -220,3 +220,3 @@ "use strict";

this.logic = [
...(item.r ? this.logic.filter((logicItem) => logicItem.r !== item.r) : this.logic),
...this.logic.filter((logicItem) => logicItem.a !== item.a && (!item.r || logicItem.r !== item.r)),
item,

@@ -223,0 +223,0 @@ ];

@@ -12,3 +12,3 @@ {

"license": "Apache-2.0",
"version": "1.0.0",
"version": "1.0.1",
"description": "",

@@ -15,0 +15,0 @@ "homepage": "https://github.com/XcooBee/payment-sdk-js#readme",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc