UNPKG

@xysfe/actui

Version:

A fantastic mobile ui lib implement by Vue

1 lines 56.7 kB
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.toBase64=e():t.toBase64=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var r={};return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="../lib",e(e.s=1356)}({0:function(t,e){var r=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=r)},10:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},100:function(t,e,r){t.exports={default:r(101),__esModule:!0}},101:function(t,e,r){r(55),t.exports=r(0).Object.getOwnPropertySymbols},1062:function(t,e,r){"use strict";var n,o=r(52),i=r.n(o);!function(){function t(t){this.mode=f.MODE_8BIT_BYTE,this.data=t,this.parsedData=[];for(var e=0,r=this.data.length;e<r;e++){var n=[],o=this.data.charCodeAt(e);o>65536?(n[0]=240|(1835008&o)>>>18,n[1]=128|(258048&o)>>>12,n[2]=128|(4032&o)>>>6,n[3]=128|63&o):o>2048?(n[0]=224|(61440&o)>>>12,n[1]=128|(4032&o)>>>6,n[2]=128|63&o):o>128?(n[0]=192|(1984&o)>>>6,n[1]=128|63&o):n[0]=o,this.parsedData.push(n)}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 e(t,e){this.typeNumber=t,this.errorCorrectLevel=e,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}function r(t,e){if(void 0==t.length)throw new Error(t.length+"/"+e);for(var r=0;r<t.length&&0==t[r];)r++;this.num=new Array(t.length-r+e);for(var n=0;n<t.length-r;n++)this.num[n]=t[n+r]}function o(t,e){this.totalCount=t,this.dataCount=e}function a(){this.buffer=[],this.length=0}function u(){var t=!1,e=navigator.userAgent;if(/android/i.test(e)){t=!0;var r=e.toString().match(/android\s*([0-9\.]*)/i);r&&r[1]&&(t=parseFloat(r[1]))}return t}function s(t,e){for(var r=1,n=c(t),o=0,i=g.length;o<=i;o++){var a=0;switch(e){case h.L:a=g[o][0];break;case h.M:a=g[o][1];break;case h.Q:a=g[o][2];break;case h.H:a=g[o][3]}if(n<=a)break;r++}if(r>g.length)throw new Error("Too long data");return r}function c(t){var e=encodeURI(t).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return e.length+(e.length!=t?3:0)}t.prototype={getLength:function(t){return this.parsedData.length},write:function(t){for(var e=0,r=this.parsedData.length;e<r;e++)t.put(this.parsedData[e],8)}},e.prototype={addData:function(e){var r=new t(e);this.dataList.push(r),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]},getModuleCount:function(){return this.moduleCount},make:function(){this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(t,r){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var n=0;n<this.moduleCount;n++){this.modules[n]=new Array(this.moduleCount);for(var o=0;o<this.moduleCount;o++)this.modules[n][o]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(t,r),this.typeNumber>=7&&this.setupTypeNumber(t),null==this.dataCache&&(this.dataCache=e.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,r)},setupPositionProbePattern:function(t,e){for(var r=-1;r<=7;r++)if(!(t+r<=-1||this.moduleCount<=t+r))for(var n=-1;n<=7;n++)e+n<=-1||this.moduleCount<=e+n||(this.modules[t+r][e+n]=r>=0&&r<=6&&(0==n||6==n)||n>=0&&n<=6&&(0==r||6==r)||r>=2&&r<=4&&n>=2&&n<=4)},getBestMaskPattern:function(){for(var t=0,e=0,r=0;r<8;r++){this.makeImpl(!0,r);var n=p.getLostPoint(this);(0==r||t>n)&&(t=n,e=r)}return e},createMovieClip:function(t,e,r){var n=t.createEmptyMovieClip(e,r);this.make();for(var o=0;o<this.modules.length;o++)for(var i=1*o,a=0;a<this.modules[o].length;a++){var u=1*a,s=this.modules[o][a];s&&(n.beginFill(0,100),n.moveTo(u,i),n.lineTo(u+1,i),n.lineTo(u+1,i+1),n.lineTo(u,i+1),n.endFill())}return n},setupTimingPattern:function(){for(var t=8;t<this.moduleCount-8;t++)null==this.modules[t][6]&&(this.modules[t][6]=t%2==0);for(var e=8;e<this.moduleCount-8;e++)null==this.modules[6][e]&&(this.modules[6][e]=e%2==0)},setupPositionAdjustPattern:function(){for(var t=p.getPatternPosition(this.typeNumber),e=0;e<t.length;e++)for(var r=0;r<t.length;r++){var n=t[e],o=t[r];if(null==this.modules[n][o])for(var i=-2;i<=2;i++)for(var a=-2;a<=2;a++)this.modules[n+i][o+a]=-2==i||2==i||-2==a||2==a||0==i&&0==a}},setupTypeNumber:function(t){for(var e=p.getBCHTypeNumber(this.typeNumber),r=0;r<18;r++){var n=!t&&1==(e>>r&1);this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=n}for(var r=0;r<18;r++){var n=!t&&1==(e>>r&1);this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=n}},setupTypeInfo:function(t,e){for(var r=this.errorCorrectLevel<<3|e,n=p.getBCHTypeInfo(r),o=0;o<15;o++){var i=!t&&1==(n>>o&1);o<6?this.modules[o][8]=i:o<8?this.modules[o+1][8]=i:this.modules[this.moduleCount-15+o][8]=i}for(var o=0;o<15;o++){var i=!t&&1==(n>>o&1);o<8?this.modules[8][this.moduleCount-o-1]=i:o<9?this.modules[8][15-o-1+1]=i:this.modules[8][15-o-1]=i}this.modules[this.moduleCount-8][8]=!t},mapData:function(t,e){for(var r=-1,n=this.moduleCount-1,o=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[n][a-u]){var s=!1;i<t.length&&(s=1==(t[i]>>>o&1));var c=p.getMask(e,n,a-u);c&&(s=!s),this.modules[n][a-u]=s,o--,-1==o&&(i++,o=7)}if((n+=r)<0||this.moduleCount<=n){n-=r,r=-r;break}}}},e.PAD0=236,e.PAD1=17,e.createData=function(t,r,n){for(var i=o.getRSBlocks(t,r),u=new a,s=0;s<n.length;s++){var c=n[s];u.put(c.mode,4),u.put(c.getLength(),p.getLengthInBits(c.mode,t)),c.write(u)}for(var f=0,s=0;s<i.length;s++)f+=i[s].dataCount;if(u.getLengthInBits()>8*f)throw new Error("code length overflow. ("+u.getLengthInBits()+">"+8*f+")");for(u.getLengthInBits()+4<=8*f&&u.put(0,4);u.getLengthInBits()%8!=0;)u.putBit(!1);for(;;){if(u.getLengthInBits()>=8*f)break;if(u.put(e.PAD0,8),u.getLengthInBits()>=8*f)break;u.put(e.PAD1,8)}return e.createBytes(u,i)},e.createBytes=function(t,e){for(var n=0,o=0,i=0,a=new Array(e.length),u=new Array(e.length),s=0;s<e.length;s++){var c=e[s].dataCount,f=e[s].totalCount-c;o=Math.max(o,c),i=Math.max(i,f),a[s]=new Array(c);for(var h=0;h<a[s].length;h++)a[s][h]=255&t.buffer[h+n];n+=c;var l=p.getErrorCorrectPolynomial(f),v=new r(a[s],l.getLength()-1),d=v.mod(l);u[s]=new Array(l.getLength()-1);for(var h=0;h<u[s].length;h++){var g=h+d.getLength()-u[s].length;u[s][h]=g>=0?d.get(g):0}}for(var y=0,h=0;h<e.length;h++)y+=e[h].totalCount;for(var m=new Array(y),w=0,h=0;h<o;h++)for(var s=0;s<e.length;s++)h<a[s].length&&(m[w++]=a[s][h]);for(var h=0;h<i;h++)for(var s=0;s<e.length;s++)h<u[s].length&&(m[w++]=u[s][h]);return m};for(var f={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},h={L:1,M:0,Q:3,H:2},l={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},p={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;p.getBCHDigit(e)-p.getBCHDigit(p.G15)>=0;)e^=p.G15<<p.getBCHDigit(e)-p.getBCHDigit(p.G15);return(t<<10|e)^p.G15_MASK},getBCHTypeNumber:function(t){for(var e=t<<12;p.getBCHDigit(e)-p.getBCHDigit(p.G18)>=0;)e^=p.G18<<p.getBCHDigit(e)-p.getBCHDigit(p.G18);return t<<12|e},getBCHDigit:function(t){for(var e=0;0!=t;)e++,t>>>=1;return e},getPatternPosition:function(t){return p.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,r){switch(t){case l.PATTERN000:return(e+r)%2==0;case l.PATTERN001:return e%2==0;case l.PATTERN010:return r%3==0;case l.PATTERN011:return(e+r)%3==0;case l.PATTERN100:return(Math.floor(e/2)+Math.floor(r/3))%2==0;case l.PATTERN101:return e*r%2+e*r%3==0;case l.PATTERN110:return(e*r%2+e*r%3)%2==0;case l.PATTERN111:return(e*r%3+(e+r)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new r([1],0),n=0;n<t;n++)e=e.multiply(new r([1,v.gexp(n)],0));return e},getLengthInBits:function(t,e){if(e>=1&&e<10)switch(t){case f.MODE_NUMBER:return 10;case f.MODE_ALPHA_NUM:return 9;case f.MODE_8BIT_BYTE:case f.MODE_KANJI:return 8;default:throw new Error("mode:"+t)}else if(e<27)switch(t){case f.MODE_NUMBER:return 12;case f.MODE_ALPHA_NUM:return 11;case f.MODE_8BIT_BYTE:return 16;case f.MODE_KANJI:return 10;default:throw new Error("mode:"+t)}else{if(!(e<41))throw new Error("type:"+e);switch(t){case f.MODE_NUMBER:return 14;case f.MODE_ALPHA_NUM:return 13;case f.MODE_8BIT_BYTE:return 16;case f.MODE_KANJI:return 12;default:throw new Error("mode:"+t)}}},getLostPoint:function(t){for(var e=t.getModuleCount(),r=0,n=0;n<e;n++)for(var o=0;o<e;o++){for(var i=0,a=t.isDark(n,o),u=-1;u<=1;u++)if(!(n+u<0||e<=n+u))for(var s=-1;s<=1;s++)o+s<0||e<=o+s||0==u&&0==s||a==t.isDark(n+u,o+s)&&i++;i>5&&(r+=3+i-5)}for(var n=0;n<e-1;n++)for(var o=0;o<e-1;o++){var c=0;t.isDark(n,o)&&c++,t.isDark(n+1,o)&&c++,t.isDark(n,o+1)&&c++,t.isDark(n+1,o+1)&&c++,0!=c&&4!=c||(r+=3)}for(var n=0;n<e;n++)for(var o=0;o<e-6;o++)t.isDark(n,o)&&!t.isDark(n,o+1)&&t.isDark(n,o+2)&&t.isDark(n,o+3)&&t.isDark(n,o+4)&&!t.isDark(n,o+5)&&t.isDark(n,o+6)&&(r+=40);for(var o=0;o<e;o++)for(var n=0;n<e-6;n++)t.isDark(n,o)&&!t.isDark(n+1,o)&&t.isDark(n+2,o)&&t.isDark(n+3,o)&&t.isDark(n+4,o)&&!t.isDark(n+5,o)&&t.isDark(n+6,o)&&(r+=40);for(var f=0,o=0;o<e;o++)for(var n=0;n<e;n++)t.isDark(n,o)&&f++;return r+=Math.abs(100*f/e/e-50)/5*10}},v={glog:function(t){if(t<1)throw new Error("glog("+t+")");return v.LOG_TABLE[t]},gexp:function(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return v.EXP_TABLE[t]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},d=0;d<8;d++)v.EXP_TABLE[d]=1<<d;for(var d=8;d<256;d++)v.EXP_TABLE[d]=v.EXP_TABLE[d-4]^v.EXP_TABLE[d-5]^v.EXP_TABLE[d-6]^v.EXP_TABLE[d-8];for(var d=0;d<255;d++)v.LOG_TABLE[v.EXP_TABLE[d]]=d;r.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),n=0;n<this.getLength();n++)for(var o=0;o<t.getLength();o++)e[n+o]^=v.gexp(v.glog(this.get(n))+v.glog(t.get(o)));return new r(e,0)},mod:function(t){if(this.getLength()-t.getLength()<0)return this;for(var e=v.glog(this.get(0))-v.glog(t.get(0)),n=new Array(this.getLength()),o=0;o<this.getLength();o++)n[o]=this.get(o);for(var o=0;o<t.getLength();o++)n[o]^=v.gexp(v.glog(t.get(o))+e);return new r(n,0).mod(t)}},o.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]],o.getRSBlocks=function(t,e){var r=o.getRsBlockTable(t,e);if(void 0==r)throw new Error("bad rs block @ typeNumber:"+t+"/errorCorrectLevel:"+e);for(var n=r.length/3,i=[],a=0;a<n;a++)for(var u=r[3*a+0],s=r[3*a+1],c=r[3*a+2],f=0;f<u;f++)i.push(new o(s,c));return i},o.getRsBlockTable=function(t,e){switch(e){case h.L:return o.RS_BLOCK_TABLE[4*(t-1)+0];case h.M:return o.RS_BLOCK_TABLE[4*(t-1)+1];case h.Q:return o.RS_BLOCK_TABLE[4*(t-1)+2];case h.H:return o.RS_BLOCK_TABLE[4*(t-1)+3];default:return}},a.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 r=0;r<e;r++)this.putBit(1==(t>>>e-r-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 g=[[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]],y=function(){var t=function(t,e){this._el=t,this._htOption=e};return t.prototype.draw=function(t){function e(t,e){var r=document.createElementNS("http://www.w3.org/2000/svg",t);for(var n in e)e.hasOwnProperty(n)&&r.setAttribute(n,e[n]);return r}var r=this._htOption,n=this._el,o=t.getModuleCount();Math.floor(r.width/o),Math.floor(r.height/o);this.clear();var i=e("svg",{viewBox:"0 0 "+String(o)+" "+String(o),width:"100%",height:"100%",fill:r.colorLight});i.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),n.appendChild(i),i.appendChild(e("rect",{fill:r.colorLight,width:"100%",height:"100%"})),i.appendChild(e("rect",{fill:r.colorDark,width:"1",height:"1",id:"template"}));for(var a=0;a<o;a++)for(var u=0;u<o;u++)if(t.isDark(a,u)){var s=e("use",{x:String(u),y:String(a)});s.setAttributeNS("http://www.w3.org/1999/xlink","href","#template"),i.appendChild(s)}},t.prototype.clear=function(){for(;this._el.hasChildNodes();)this._el.removeChild(this._el.lastChild)},t}(),m="svg"===document.documentElement.tagName.toLowerCase(),w=m?y:function(){return"undefined"!=typeof CanvasRenderingContext2D}()?function(){function t(){try{var t=this._elCanvas.toDataURL("image/png");return i.a.resolve(t)}catch(t){return i.a.reject("toDataURL failed")}}function e(t,e){var r=this;return r._fFail=e,r._fSuccess=t,null===r._bSupportDataURI?new i.a(function(t,e){var n=document.createElement("img"),o=function(){r._bSupportDataURI=!1,r._fFail&&(r._fFail.call(r),e("Browser doesn't supports Data URI"))},i=function(){r._bSupportDataURI=!0,r._fSuccess&&t(r._fSuccess.call(r))};n.onabort=o,n.onerror=o,n.onload=i,n.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="}):!0===r._bSupportDataURI&&r._fSuccess?r._fSuccess.call(r):!1===r._bSupportDataURI&&r._fFail?(r._fFail.call(r),i.a.reject("Browser doesn't supports Data URI")):void 0}var r=u();if(r&&r<=2.1){var n=1/window.devicePixelRatio,o=CanvasRenderingContext2D.prototype.drawImage;CanvasRenderingContext2D.prototype.drawImage=function(t,e,r,i,a,u,s,c,f){if("nodeName"in t&&/img/i.test(t.nodeName))for(var h=arguments.length-1;h>=1;h--)arguments[h]=arguments[h]*n;else void 0===c&&(arguments[1]*=n,arguments[2]*=n,arguments[3]*=n,arguments[4]*=n);o.apply(this,arguments)}}var a=function(t,e){this._bIsPainted=!1,this._android=u(),this._htOption=e,this._elCanvas=document.createElement("canvas"),this._elCanvas.width=e.width,this._elCanvas.height=e.height,this._elCanvas.style.display="none",this._el=t,this._oContext=this._elCanvas.getContext("2d"),this._bIsPainted=!1,this._elImage="",this._bSupportDataURI=null};return a.prototype.draw=function(t){var e=(this._elImage,this._oContext),r=this._htOption,n=t.getModuleCount(),o=r.width/n,i=r.height/n,a=Math.round(o),u=Math.round(i);this.clear();for(var s=0;s<n;s++)for(var c=0;c<n;c++){var f=t.isDark(s,c),h=c*o,l=s*i;e.strokeStyle=f?r.colorDark:r.colorLight,e.lineWidth=1,e.fillStyle=f?r.colorDark:r.colorLight,e.fillRect(h,l,o,i),e.strokeRect(Math.floor(h)+.5,Math.floor(l)+.5,a,u),e.strokeRect(Math.ceil(h)-.5,Math.ceil(l)-.5,a,u)}this._bIsPainted=!0},a.prototype.makeImage=function(){if(this._bIsPainted)return e.call(this,t)},a.prototype.isPainted=function(){return this._bIsPainted},a.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height),this._bIsPainted=!1},a.prototype.round=function(t){return t?Math.floor(1e3*t)/1e3:t},a}():function(){var t=function(t,e){this._el=t,this._htOption=e};return t.prototype.draw=function(t){for(var e=this._htOption,r=this._el,n=t.getModuleCount(),o=Math.floor(e.width/n),i=Math.floor(e.height/n),a=['<table style="border:0;border-collapse:collapse;">'],u=0;u<n;u++){a.push("<tr>");for(var s=0;s<n;s++)a.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+o+"px;height:"+i+"px;background-color:"+(t.isDark(u,s)?e.colorDark:e.colorLight)+';"></td>');a.push("</tr>")}a.push("</table>"),r.innerHTML=a.join("");var c=r.childNodes[0],f=(e.width-c.offsetWidth)/2,h=(e.height-c.offsetHeight)/2;f>0&&h>0&&(c.style.margin=h+"px "+f+"px")},t.prototype.clear=function(){this._el.innerHTML=""},t}();n=function(t,e){if(this.reset(),"string"==typeof t&&(t={text:t}),t)for(var r in t)this._htOption[r]=t[r];this._htOption.useSVG&&(w=y),this._android=u(),this._el=e,this._oQRCode=null,this._oDrawing=new w(this._el,this._htOption),this._htOption.text&&this.makeCode(this._htOption.text)},n.prototype.reset=function(){this._htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:h.H}},n.prototype.makeCode=function(t){return this._oQRCode=new e(s(t,this._htOption.correctLevel),this._htOption.correctLevel),this._oQRCode.addData(t),this._oQRCode.make(),this._oDrawing.draw(this._oQRCode),this.makeImage()},n.prototype.makeImage=function(){if("function"==typeof this._oDrawing.makeImage&&(!this._android||this._android>=3))return this._oDrawing.makeImage()},n.prototype.clear=function(){this.reset(),this._oDrawing.clear()},n.CorrectLevel=h}(),e.a=n},107:function(t,e,r){var n=r(26),o=r(3)("toStringTag"),i="Arguments"==n(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,r,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=a(e=Object(t),o))?r:i?n(e):"Object"==(u=n(e))&&"function"==typeof e.callee?"Arguments":u}},11:function(t,e,r){var n=r(47),o=r(29);t.exports=function(t){return n(o(t))}},110:function(t,e,r){var n=r(9),o=r(40),i=r(3)("species");t.exports=function(t,e){var r,a=n(t).constructor;return void 0===a||void 0==(r=n(a)[i])?e:o(r)}},111:function(t,e,r){var n,o,i,a=r(38),u=r(146),s=r(60),c=r(41),f=r(2),h=f.process,l=f.setImmediate,p=f.clearImmediate,v=f.MessageChannel,d=f.Dispatch,g=0,y={},m=function(){var t=+this;if(y.hasOwnProperty(t)){var e=y[t];delete y[t],e()}},w=function(t){m.call(t.data)};l&&p||(l=function(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return y[++g]=function(){u("function"==typeof t?t:Function(t),e)},n(g),g},p=function(t){delete y[t]},"process"==r(26)(h)?n=function(t){h.nextTick(a(m,t,1))}:d&&d.now?n=function(t){d.now(a(m,t,1))}:v?(o=new v,i=o.port2,o.port1.onmessage=w,n=a(i.postMessage,i,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(n=function(t){f.postMessage(t+"","*")},f.addEventListener("message",w,!1)):n="onreadystatechange"in c("script")?function(t){s.appendChild(c("script")).onreadystatechange=function(){s.removeChild(this),m.call(t)}}:function(t){setTimeout(a(m,t,1),0)}),t.exports={set:l,clear:p}},112:function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},113:function(t,e,r){var n=r(9),o=r(10),i=r(68);t.exports=function(t,e){if(n(t),o(e)&&e.constructor===t)return e;var r=i.f(t);return(0,r.resolve)(e),r.promise}},115:function(t,e,r){var n=r(107),o=r(3)("iterator"),i=r(18);t.exports=r(0).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[n(t)]}},12:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},123:function(t,e,r){var n=r(38),o=r(136),i=r(137),a=r(9),u=r(59),s=r(115),c={},f={},e=t.exports=function(t,e,r,h,l){var p,v,d,g,y=l?function(){return t}:s(t),m=n(r,h,e?2:1),w=0;if("function"!=typeof y)throw TypeError(t+" is not iterable!");if(i(y)){for(p=u(t.length);p>w;w++)if((g=e?m(a(v=t[w])[0],v[1]):m(t[w]))===c||g===f)return g}else for(d=y.call(t);!(v=d.next()).done;)if((g=o(d,m,v.value,e))===c||g===f)return g};e.BREAK=c,e.RETURN=f},1231:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(52),o=r.n(n),i=r(1062);e.default=function(t){return new o.a(function(e,r){var n=t.text;n||r(new Error("qrcode options need text field")),new i.a(t).makeCode(n).then(function(t){e(t)}).catch(function(t){console.error(t),r(t)})})}},13:function(t,e,r){var n=r(2),o=r(0),i=r(38),a=r(7),u=r(6),s=function(t,e,r){var c,f,h,l=t&s.F,p=t&s.G,v=t&s.S,d=t&s.P,g=t&s.B,y=t&s.W,m=p?o:o[e]||(o[e]={}),w=m.prototype,_=p?n:v?n[e]:(n[e]||{}).prototype;p&&(r=e);for(c in r)(f=!l&&_&&void 0!==_[c])&&u(m,c)||(h=f?_[c]:r[c],m[c]=p&&"function"!=typeof _[c]?r[c]:g&&f?i(h,n):y&&_[c]==h?function(t){var e=function(e,r,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,r)}return new t(e,r,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(h):d&&"function"==typeof h?i(Function.call,h):h,d&&((m.virtual||(m.virtual={}))[c]=h,t&s.R&&w&&!w[c]&&a(w,c,h)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},1356:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(52),o=r.n(n),i=r(207),a=r.n(i),u=r(208),s=r.n(u),c=r(58),f=r.n(c),h=r(214),l=r.n(h),p=r(1231),v=r(62),d={},g=function(){function t(){l()(this,t)}return t.prototype.setOptions=function(t){this.options=t,this.type=t.type?t.type:"jpeg",this.q=t.q?t.q:1,this.bg=null},t.prototype.getOptionsKey=function(){var t=f()(this.options);return this.options.drawText&&(t+=this.options.drawText.toString()),t},t.prototype.getQrCode=function(){function t(t){return e.apply(this,arguments)}var e=s()(a.a.mark(function t(e){var r;return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(p.default)(e);case 2:return r=t.sent,e.url=r,t.abrupt("return",this.setImgAttr(e));case 5:case"end":return t.stop()}},t,this)}));return t}(),t.prototype.getBg=function(){function t(t){return e.apply(this,arguments)}var e=s()(a.a.mark(function t(e){var r;return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.setImgAttr(e);case 2:return r=t.sent,r.width=r.img.naturalWidth?r.img.naturalWidth:r.img.width,r.height=r.img.naturalHeight?r.img.naturalHeight:r.img.height,t.abrupt("return",r);case 6:case"end":return t.stop()}},t,this)}));return t}(),t.prototype.setImgAttr=function(t){return new o.a(function(e,r){var n=new Image;n.onload=n.oncomplete=function(){t.img=n,e(t)},n.onabort=n.onerror=function(){r(new Error(n.src+" load failed"))},t.url.match(/^data:image/)||(n.crossOrigin="Anonymous"),n.src=t.url})},t.prototype.loadSource=function(t){return t.bg?this.getBg(t):t.qrcode?this.getQrCode(t):this.setImgAttr(t)},t.prototype.loadImg=function(){var t=this;return new o.a(function(e,r){for(var n=[],i=0;i<t.options.imgs.length;++i){var a=t.options.imgs[i],u=Object(v.a)({},a);u.bg&&(t.bg=u),n.push(t.loadSource(u))}t.bg?o.a.all(n).then(function(t){e(t)}).catch(function(t){r(t)}):r(new Error('imgs property must have one item which has "bg" property'))})},t.prototype.drawCircleImage=function(t,e,r,n,o){t.save();var i=2*o,a=r+o,u=n+o;t.arc(a,u,o,0,2*Math.PI),t.clip(),t.drawImage(e,r,n,i,i),t.restore()},t.prototype.draw=function(t){try{var e=document.createElement("canvas");e.width=this.bg.width,e.height=this.bg.height;var r=e.getContext("2d");this.options.setContext?this.options.setContext(r,e.width,e.height):(r.fillStyle="#fff",r.fillRect(0,0,e.width,e.height)),r.drawImage(this.bg.img,0,0,this.bg.width,this.bg.height);for(var n=0;n<t.length;++n){var o=t[n];o.img!==this.bg.img&&(o.circle?this.drawCircleImage(r,o.img,o.x,o.y,o.width/2):r.drawImage(o.img,o.x,o.y,o.width,o.height))}this.options.drawText&&(r.save(),this.options.drawText(r,e.width,e.height),r.restore());return{data:e.toDataURL("image/"+this.type,this.q),width:e.width,height:e.height}}catch(t){return console.error(t),""}},t}(),y=function(t){return new o.a(function(e,r){var n=new g;n.setOptions(t);var o=n.getOptionsKey();t.useCache&&d[o]?e(d[o]):n.loadImg().then(function(t){var i=n.draw(t);i?(setTimeout(function(){d[o]=i},0),e(i)):r(new Error("get base64 error"))}).catch(function(t){r(t)})})};e.default=y},136:function(t,e,r){var n=r(9);t.exports=function(t,e,r,o){try{return o?e(n(r)[0],r[1]):e(r)}catch(e){var i=t.return;throw void 0!==i&&n(i.call(t)),e}}},137:function(t,e,r){var n=r(18),o=r(3)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||i[o]===t)}},139:function(t,e){t.exports=function(t,e,r,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(r+": incorrect invocation!");return t}},140:function(t,e,r){var n=r(7);t.exports=function(t,e,r){for(var o in e)r&&t[o]?t[o]=e[o]:n(t,o,e[o]);return t}},141:function(t,e,r){var n=r(3)("iterator"),o=!1;try{var i=[7][n]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var r=!1;try{var i=[7],a=i[n]();a.next=function(){return{done:r=!0}},i[n]=function(){return a},t(i)}catch(t){}return r}},142:function(t,e,r){"use strict";var n=r(2),o=r(0),i=r(8),a=r(5),u=r(3)("species");t.exports=function(t){var e="function"==typeof o[t]?o[t]:n[t];a&&e&&!e[u]&&i.f(e,u,{configurable:!0,get:function(){return this}})}},144:function(t,e,r){r(61),r(53),r(56),r(145),r(149),r(150),t.exports=r(0).Promise},145:function(t,e,r){"use strict";var n,o,i,a,u=r(16),s=r(2),c=r(38),f=r(107),h=r(13),l=r(10),p=r(40),v=r(139),d=r(123),g=r(110),y=r(111).set,m=r(147)(),w=r(68),_=r(112),b=r(148),x=r(113),E=s.TypeError,O=s.process,P=O&&O.versions,L=P&&P.v8||"",T=s.Promise,A="process"==f(O),C=function(){},S=o=w.f,k=!!function(){try{var t=T.resolve(1),e=(t.constructor={})[r(3)("species")]=function(t){t(C,C)};return(A||"function"==typeof PromiseRejectionEvent)&&t.then(C)instanceof e&&0!==L.indexOf("6.6")&&-1===b.indexOf("Chrome/66")}catch(t){}}(),D=function(t){var e;return!(!l(t)||"function"!=typeof(e=t.then))&&e},M=function(t,e){if(!t._n){t._n=!0;var r=t._c;m(function(){for(var n=t._v,o=1==t._s,i=0;r.length>i;)!function(e){var r,i,a,u=o?e.ok:e.fail,s=e.resolve,c=e.reject,f=e.domain;try{u?(o||(2==t._h&&N(t),t._h=1),!0===u?r=n:(f&&f.enter(),r=u(n),f&&(f.exit(),a=!0)),r===e.promise?c(E("Promise-chain cycle")):(i=D(r))?i.call(r,s,c):s(r)):c(n)}catch(t){f&&!a&&f.exit(),c(t)}}(r[i++]);t._c=[],t._n=!1,e&&!t._h&&j(t)})}},j=function(t){y.call(s,function(){var e,r,n,o=t._v,i=I(t);if(i&&(e=_(function(){A?O.emit("unhandledRejection",o,t):(r=s.onunhandledrejection)?r({promise:t,reason:o}):(n=s.console)&&n.error&&n.error("Unhandled promise rejection",o)}),t._h=A||I(t)?2:1),t._a=void 0,i&&e.e)throw e.v})},I=function(t){return 1!==t._h&&0===(t._a||t._c).length},N=function(t){y.call(s,function(){var e;A?O.emit("rejectionHandled",t):(e=s.onrejectionhandled)&&e({promise:t,reason:t._v})})},B=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),M(e,!0))},R=function(t){var e,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw E("Promise can't be resolved itself");(e=D(t))?m(function(){var n={_w:r,_d:!1};try{e.call(t,c(R,n,1),c(B,n,1))}catch(t){B.call(n,t)}}):(r._v=t,r._s=1,M(r,!1))}catch(t){B.call({_w:r,_d:!1},t)}}};k||(T=function(t){v(this,T,"Promise","_h"),p(t),n.call(this);try{t(c(R,this,1),c(B,this,1))}catch(t){B.call(this,t)}},n=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},n.prototype=r(140)(T.prototype,{then:function(t,e){var r=S(g(this,T));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=A?O.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&M(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new n;this.promise=t,this.resolve=c(R,t,1),this.reject=c(B,t,1)},w.f=S=function(t){return t===T||t===a?new i(t):o(t)}),h(h.G+h.W+h.F*!k,{Promise:T}),r(27)(T,"Promise"),r(142)("Promise"),a=r(0).Promise,h(h.S+h.F*!k,"Promise",{reject:function(t){var e=S(this);return(0,e.reject)(t),e.promise}}),h(h.S+h.F*(u||!k),"Promise",{resolve:function(t){return x(u&&this===a?T:this,t)}}),h(h.S+h.F*!(k&&r(141)(function(t){T.all(t).catch(C)})),"Promise",{all:function(t){var e=this,r=S(e),n=r.resolve,o=r.reject,i=_(function(){var r=[],i=0,a=1;d(t,!1,function(t){var u=i++,s=!1;r.push(void 0),a++,e.resolve(t).then(function(t){s||(s=!0,r[u]=t,--a||n(r))},o)}),--a||n(r)});return i.e&&o(i.v),r.promise},race:function(t){var e=this,r=S(e),n=r.reject,o=_(function(){d(t,!1,function(t){e.resolve(t).then(r.resolve,n)})});return o.e&&n(o.v),r.promise}})},146:function(t,e){t.exports=function(t,e,r){var n=void 0===r;switch(e.length){case 0:return n?t():t.call(r);case 1:return n?t(e[0]):t.call(r,e[0]);case 2:return n?t(e[0],e[1]):t.call(r,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(r,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(r,e[0],e[1],e[2],e[3])}return t.apply(r,e)}},147:function(t,e,r){var n=r(2),o=r(111).set,i=n.MutationObserver||n.WebKitMutationObserver,a=n.process,u=n.Promise,s="process"==r(26)(a);t.exports=function(){var t,e,r,c=function(){var n,o;for(s&&(n=a.domain)&&n.exit();t;){o=t.fn,t=t.next;try{o()}catch(n){throw t?r():e=void 0,n}}e=void 0,n&&n.enter()};if(s)r=function(){a.nextTick(c)};else if(!i||n.navigator&&n.navigator.standalone)if(u&&u.resolve){var f=u.resolve(void 0);r=function(){f.then(c)}}else r=function(){o.call(n,c)};else{var h=!0,l=document.createTextNode("");new i(c).observe(l,{characterData:!0}),r=function(){l.data=h=!h}}return function(n){var o={fn:n,next:void 0};e&&(e.next=o),t||(t=o,r()),e=o}}},148:function(t,e,r){var n=r(2),o=n.navigator;t.exports=o&&o.userAgent||""},149:function(t,e,r){"use strict";var n=r(13),o=r(0),i=r(2),a=r(110),u=r(113);n(n.P+n.R,"Promise",{finally:function(t){var e=a(this,o.Promise||i.Promise),r="function"==typeof t;return this.then(r?function(r){return u(e,t()).then(function(){return r})}:t,r?function(r){return u(e,t()).then(function(){throw r})}:t)}})},15:function(t,e,r){var n=r(50),o=r(33);t.exports=Object.keys||function(t){return n(t,o)}},150:function(t,e,r){"use strict";var n=r(13),o=r(68),i=r(112);n(n.S,"Promise",{try:function(t){var e=o.f(this),r=i(t);return(r.e?e.reject:e.resolve)(r.v),e.promise}})},16:function(t,e){t.exports=!0},18:function(t,e){t.exports={}},19:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},2:function(t,e){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},207:function(t,e,r){t.exports=r(215)},208:function(t,e,r){"use strict";e.__esModule=!0;var n=r(52),o=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=function(t){return function(){var e=t.apply(this,arguments);return new o.default(function(t,r){function n(i,a){try{var u=e[i](a),s=u.value}catch(t){return void r(t)}if(!u.done)return o.default.resolve(s).then(function(t){n("next",t)},function(t){n("throw",t)});t(s)}return n("next")})}}},214:function(t,e,r){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},215:function(t,e,r){var n=function(){return this}()||Function("return this")(),o=n.regeneratorRuntime&&Object.getOwnPropertyNames(n).indexOf("regeneratorRuntime")>=0,i=o&&n.regeneratorRuntime;if(n.regeneratorRuntime=void 0,t.exports=r(216),o)n.regeneratorRuntime=i;else try{delete n.regeneratorRuntime}catch(t){n.regeneratorRuntime=void 0}},216:function(t,e){!function(e){"use strict";function r(t,e,r,n){var i=e&&e.prototype instanceof o?e:o,a=Object.create(i.prototype),u=new p(n||[]);return a._invoke=c(t,r,u),a}function n(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}function o(){}function i(){}function a(){}function u(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function s(t){function e(r,o,i,a){var u=n(t[r],t,o);if("throw"!==u.type){var s=u.arg,c=s.value;return c&&"object"==typeof c&&m.call(c,"__await")?Promise.resolve(c.__await).then(function(t){e("next",t,i,a)},function(t){e("throw",t,i,a)}):Promise.resolve(c).then(function(t){s.value=t,i(s)},a)}a(u.arg)}function r(t,r){function n(){return new Promise(function(n,o){e(t,r,n,o)})}return o=o?o.then(n,n):n()}var o;this._invoke=r}function c(t,e,r){var o=P;return function(i,a){if(o===T)throw new Error("Generator is already running");if(o===A){if("throw"===i)throw a;return d()}for(r.method=i,r.arg=a;;){var u=r.delegate;if(u){var s=f(u,r);if(s){if(s===C)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===P)throw o=A,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=T;var c=n(t,e,r);if("normal"===c.type){if(o=r.done?A:L,c.arg===C)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=A,r.method="throw",r.arg=c.arg)}}}function f(t,e){var r=t.iterator[e.method];if(r===g){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=g,f(t,e),"throw"===e.method))return C;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return C}var o=n(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,C;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=g),e.delegate=null,C):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,C)}function h(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function l(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function p(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(h,this),this.reset(!0)}function v(t){if(t){var e=t[_];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(m.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=g,e.done=!0,e};return n.next=n}}return{next:d}}function d(){return{value:g,done:!0}}var g,y=Object.prototype,m=y.hasOwnProperty,w="function"==typeof Symbol?Symbol:{},_=w.iterator||"@@iterator",b=w.asyncIterator||"@@asyncIterator",x=w.toStringTag||"@@toStringTag",E="object"==typeof t,O=e.regeneratorRuntime;if(O)return void(E&&(t.exports=O));O=e.regeneratorRuntime=E?t.exports:{},O.wrap=r;var P="suspendedStart",L="suspendedYield",T="executing",A="completed",C={},S={};S[_]=function(){return this};var k=Object.getPrototypeOf,D=k&&k(k(v([])));D&&D!==y&&m.call(D,_)&&(S=D);var M=a.prototype=o.prototype=Object.create(S);i.prototype=M.constructor=a,a.constructor=i,a[x]=i.displayName="GeneratorFunction",O.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===i||"GeneratorFunction"===(e.displayName||e.name))},O.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,a):(t.__proto__=a,x in t||(t[x]="GeneratorFunction")),t.prototype=Object.create(M),t},O.awrap=function(t){return{__await:t}},u(s.prototype),s.prototype[b]=function(){return this},O.AsyncIterator=s,O.async=function(t,e,n,o){var i=new s(r(t,e,n,o));return O.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},u(M),M[x]="Generator",M[_]=function(){return this},M.toString=function(){return"[object Generator]"},O.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},O.values=v,p.prototype={constructor:p,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=g,this.done=!1,this.delegate=null,this.method="next",this.arg=g,this.tryEntries.forEach(l),!t)for(var e in this)"t"===e.charAt(0)&&m.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=g)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){function e(e,n){return i.type="throw",i.arg=t,r.next=e,n&&(r.method="next",r.arg=g),!!n}if(this.done)throw t;for(var r=this,n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],i=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var a=m.call(o,"catchLoc"),u=m.call(o,"finallyLoc");if(a&&u){if(this.prev<o.catchLoc)return e(o.catchLoc,!0);if(this.prev<o.finallyLoc)return e(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return e(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return e(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&m.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,C):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),C},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),l(r),C}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;l(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:v(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=g),C}}}(function(){return this}()||Function("return this")())},23:function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+n).toString(36))}},24:function(t,e,r){var n=r(29);t.exports=function(t){return Object(n(t))}},25:function(t,e){e.f={}.propertyIsEnumerable},26:function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},27:function(t,e,r){var n=r(8).f,o=r(6),i=r(3)("toStringTag");t.exports=function(t,e,r){t&&!o(t=r?t:t.prototype,i)&&n(t,i,{configurable:!0,value:e})}},28:function(t,e,r){t.exports={default:r(82),__esModule:!0}},29:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},3:function(t,e,r){var n=r(32)("wks"),o=r(23),i=r(2).Symbol,a="function"==typeof i;(t.exports=function(t){return n[t]||(n[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=n},30:function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},31:function(t,e,r){var n=r(32)("keys"),o=r(23);t.exports=function(t){return n[t]||(n[t]=o(t))}},32:function(t,e,r){var n=r(0),o=r(2),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:r(16)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},33:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},34:function(t,e,r){var n=r(10);t.exports=function(t,e){if(!n(t))return t;var r,o;if(e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!n(o=r.call(t)))return o;if(!e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},35:function(t,e){e.f=Object.getOwnPropertySymbols},36:function(t,e,r){e.f=r(3)},37:function(t,e,r){var n=r(2),o=r(0),i=r(16),a=r(36),u=r(8).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||u(e,t,{value:a.f(t)})}},38:function(t,e,r){var n=r(40);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}}},40:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},41:function(t,e,r){var n=r(10),o=r(2).document,i=n(o)&&n(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},45:function(t,e,r){"use strict";var n=r(16),o=r(13),i=r(49),a=r(7),u=r(18),s=r(70),c=r(27),f=r(74),h=r(3)("iterator"),l=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(t,e,r,v,d,g,y){s(r,e,v);var m,w,_,b=function(t){if(!l&&t in P)return P[t];switch(t){case"keys":case"values":return function(){return new r(this,t)}}return function(){return new r(this,t)}},x=e+" Iterator",E="values"==d,O=!1,P=t.prototype,L=P[h]||P["@@iterator"]||d&&P[d],T=L||b(d),A=d?E?b("entries"):T:void 0,C="Array"==e?P.entries||L:L;if(C&&(_=f(C.call(new t)))!==Object.prototype&&_.next&&(c(_,x,!0),n||"function"==typeof _[h]||a(_,h,p)),E&&L&&"values"!==L.name&&(O=!0,T=function(){return L.call(this)}),n&&!y||!l&&!O&&P[h]||a(P,h,T),u[e]=T,u[x]=p,d)if(m={values:E?T:b("values"),keys:g?T:b("keys"),entries:A},y)for(w in m)w in P||i(P,w,m[w]);else o(o.P+o.F*(l||O),e,m);return m}},46:function(t,e,r){var n=r(9),o=r(71),i=r(33),a=r(31)("IE_PROTO"),u=function(){},s=function(){var t,e=r(41)("iframe"),n=i.length;for(e.style.display="none",r(60).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),s=t.F;n--;)delete s.prototype[i[n]];return s()};t.exports=Object.create||function(t,e){var r;return null!==t?(u.prototype=n(t),r=new u,u.prototype=null,r[a]=t):r=s(),void 0===e?r:o(r,e)}},47:function(t,e,r){var n=r(26);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},48:function(t,e,r){t.exports=!r(5)&&!r(12)(function(){return 7!=Object.defineProperty(r(41)("div"),"a",{get:function(){return 7}}).a})},49:function(t,e,r){t.exports=r(7)},5:function(t,e,r){t.exports=!r(12)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},50:function(t,e,r){var n=r(6),o=r(11),i=r(72)(!1),a=r(31)("IE_PROTO");t.exports=function(t,e){var r,u=o(t),s=0,c=[];for(r in u)r!=a&&n(u,r)&&c.push(r);for(;e.length>s;)n(u,r=e[s++])&&(~i(c,r)||c.push(r));return c}},51:function(t,e,r){var n=r(50),o=r(33).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},52:function(t,e,r){t.exports={default:r(144),__esModule:!0}},53:function(t,e,r){"use strict";var n=r(69)(!0);r(45)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,r=this._i;return r>=e.length?{value:void 0,done:!0}:(t=n(e,r),this._i+=t.length,{value:t,done:!1})})},54:function(t,e,r){var n=r(11),o=r(51).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(t){try{return o(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?u(t):o(n(t))}},55:function(t,e,r){"use strict";var n=r(2),o=r(6),i=r(5),a=r(13),u=r(49),s=r(77).KEY,c=r(12),f=r(32),h=r(27),l=r(23),p=r(3),v=r(36),d=r(37),g=r(85),y=r(80),m=r(9),w=r(10),_=r(24),b=r(11),x=r(34),E=r(19),O=r(46),P=r(54),L=r(86),T=r(35),A=r(8),C=r(15),S=L.f,k=A.f,D=P.f,M=n.Symbol,j=n.JSON,I=j&&j.stringify,N=p("_hidden"),B=p("toPrimitive"),R={}.propertyIsEnumerable,F=f("symbol-registry"),G=f("symbols"),H=f("op-symbols"),U=Object.prototype,K="function"==typeof M&&!!T.f,J=n.QObject,Q=!J||!J.prototype||!J.prototype.findChild,W=i&&c(function(){return 7!=O(k({},"a",{get:function(){return k(this,"a",{value:7}).a}})).a})?function(t,e,r){var n=S(U,e);n&&delete U[e],k(t,e,r),n&&t!==U&&k(U,e,n)}:k,X=function(t){var e=G[t]=O(M.prototype);return e._k=t,e},Y=K&&"symbol"==typeof M.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof M},q=function(t,e,r){return t===U&&q(H,e,r),m(t),e=x(e,!0),m(r),o(G,e)?(r.enumerable?(o(t,N)&&t[N][e]&&(t[N][e]=!1),r=O(r,{enumerable:E(0,!1)})):(o(t,N)||k(t,N,E(1,{})),t[N][e]=!0),W(t,e,r)):k(t,e,r)},V=function(t,e){m(t);for(var r,n=g(e=b(e)),o=0,i=n.length;i>o;)q(t,r=n[o++],e[r]);return t},z=function(t,e){return void 0===e?O(t):V(O(t),e)},Z=function(t){var e=R.call(this,t=x(t,!0));return!(this===U&&o(G,t)&&!o(H,t))&&(!(e||!o(this,t)||!o(G,t)||o(this,N)&&this[N][t])||e)},$=function(t,e){if(t=b(t),e=x(e,!0),t!==U||!o(G,e)||o(H,e)){var r=S(t,e);return!r||!o(G,e)||o(t,N)&&t[N][e]||(r.enumerable=!0),r}},tt=function(t){for(var e,r=D(b(t)),n=[],i=0;r.length>i;)o(G,e=r[i++])||e==N||e==s||n.push(e);return n},et=function(t){for(var e,r=t===U,n=D(r?H:b(t)),i=[],a=0;n.length>a;)!o(G,e=n[a++])||r&&!o(U,e)||i.push(G[e]);return i};K||(M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var t=l(arguments.length>0?arguments[0]:void 0),e=function(r){this===U&&e.call(H,r),o(this,N)&&o(this[N],t)&&(this[N][t]=!1),W(this,t,E(1,r))};return i&&Q&&W(U,t,{configurable:!0,set:e}),X(t)},u(M.prototype,"toString",function(){return this._k}),L.f=$,A.f=q,r(51).f=P.f=tt,r(25).f=Z,T.f=et,i&&!r(16)&&u(U,"propertyIsEnumerable",Z,!0),v.f=function(t){return X(p(t))}),a(a.G+a.W+a.F*!K,{Symbol:M});for(var rt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;rt.length>nt;)p(rt[nt++]);for(var ot=C(p.store),it=0;ot.length>it;)d(ot[it++]);a(a.S+a.F*!K,"Symbol",{for:function(t){return o(F,t+="")?F[t]:F[t]=M(t)},keyFor:function(t){if(!Y(t))throw TypeError(t+" is not a symbol!");for(var e in F)if(F[e]===t)return e},useSetter:function(){Q=!0},useSimple:function(){Q=!1}}),a(a.S+a.F*!K,"Object",{create:z,defineProperty:q,defineProperties:V,getOwnPropertyDescriptor:$,getOwnPropertyNames:tt,getOwnPropertySymbols:et});var at=c(function(){T.f(1)});a(a.S+a.F*at,"Object",{getOwnPropertySymbols:function(t){return T.f(_(t))}}),j&&a(a.S+a.F*(!K||c(function(){var t=M();return"[null]"!=I([t])||"{}"!=I({a:t})||"{}"!=I(Object(t))})),"JSON",{stringify:function(t){for(var e,r,n=[t],o=1;arguments.length>o;)n.push(arguments[o++]);if(r=e=n[1],(w(e)||void 0!==t)&&!Y(t))return y(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!Y(e))return e}),n[1]=e,I.apply(j,n)}}),M.prototype[B]||r(7)(M.prototype,B,M.prototype.valueOf),h(M,"Symbol"),h(Math,"Math",!0),h(n.JSON,"JSON",!0)},56:function(t,e,r){r(75);for(var n=r(2),o=r(7),i=r(18),a=r(3)("toStringTag"),u="CSSRuleList,CSSStyleDeclarati