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