@mescius/spread-sheets-barcode 17.0.1 → 17.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * SpreadJS Library 17.0.1
3
+ * SpreadJS Library 17.0.3
4
4
  *
5
5
  * Copyright(c) MESCIUS inc. All rights reserved.
6
6
  *
@@ -9,4 +9,4 @@
9
9
  * https://developer.mescius.com/spreadjs
10
10
  *
11
11
  */
12
- !function(t){"object"==typeof module&&"object"==typeof module.exports?module.exports=t(require("@mescius/spread-sheets")):"function"==typeof define&&define.amd?define(["@mescius/spread-sheets"],t):"object"==typeof exports?exports.Spread=t(require("@mescius/spread-sheets")):t(GC)}(function(e){function n(t){var e,e,e=i[t];return void 0!==e||(e=i[t]={exports:{}},r[t].call(e.exports,e,e.exports,n)),e.exports}var r,i,o;r={"./dist/plugins/barcode/barcodeSparkline.js":function(F,t,e){"use strict";var n,r,i,o,u,y,e,a,c,s,p,r,f,l,h,e,o,r,i,v,d,w,b,g,m,R,n,C,k,q,L,Z,P,U,$,G,z,V,W,X;function H(r,t){var e,i,o,u,e,i={},o={},u={};return t.forEach(function(t,e){var n=r[e];if(!s(n))if(-1!==t.indexOf("quietZone"))switch(t){case"quietZoneLeft":o.left=n;break;case"quietZoneRight":o.right=n;break;case"quietZoneTop":o.top=n;break;case"quietZoneBottom":o.bottom=n}else if(-1!==t.indexOf("font"))switch(t){case"fontFontFamily":u.fontFamily=n;break;case"fontFontStyle":u.fontStyle=n;break;case"fontFontWeight":u.fontWeight=n;break;case"fontTextDecoration":u.textDecoration=n;break;case"fontTextAlign":u.textAlign=n;break;case"fontFontSize":u.fontSize=n}else i[t]=n}),a(o)||(i.quietZone=o),a(u)||(i.font=u),i}function Q(t,e,n,r,i){return{plotX:t+i,plotY:e+i,plotWidth:n-2*i,plotHeight:r-2*i}}function K(t,e,n,r,i,o,u){var a,c,e,s,f,l,c,h,v,d,w,b,b,w,h,l,a=2,c=Q(n,r,i,o,2),e=p(e),s=c.plotX,f=c.plotY,l=c.plotWidth,c=c.plotHeight;e.desiredSize={width:l,height:c,forceRounding:!1};try{h=new y(null,e)}catch(t){return}v=h.getSize(),d=parseInt(h.option.font.fontSize,10),d=isNaN(d)?12:d,b=(w=window.screen).deviceXDPI,b=window.devicePixelRatio||(b?b/w.logicalXDPI:1),h.destroy(),e.desiredSize.width=l*b,e.desiredSize.height=c*b,e.font=e.font||{},e.font.fontSize=d*b*u.zoomFactor+"px",w=y.getDataUrl(e),(h=u.sheet.MC)&&(h.jt(w)?(l=h.Ot(w),t.save(),t.rect(n,r,i,o),t.clip(),t.drawImage(l,0,0,l.width,l.height,s,f,v.width,v.height),t.restore()):h.Rt(w))}function A(){return k.call(this)||this}function O(){return q.call(this)||this}function E(){return L.call(this)||this}function j(){return Z.call(this)||this}function S(){return P.call(this)||this}function T(){return U.call(this)||this}function x(){return $.call(this)||this}function M(){return G.call(this)||this}function B(){return z.call(this)||this}function _(){return V.call(this)||this}function N(){return W.call(this)||this}function D(){return X.call(this)||this}function I(t){t&&(u.jMt[t.name()]=t)}n=this&&this.__extends||(C=function(t,e){return(C=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}C(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Object.defineProperty(t,"__esModule",{value:!0}),t.DataMatrix=t.PDF417=t.Code49=t.GS1_128=t.Code128=t.Code93=t.Code39=t.Codabar=t.EAN8=t.EAN13=t.QRCode=t.BarcodeBase=void 0,r=e("Core"),i=e("CalcEngine"),o=e("Common"),u=e("Sparkline"),y=e("./dist/plugins/barcode/lib/barcode.all.js"),e=r.GC$,a=e.isEmptyObject,c=i.Functions.Function,s=o.Common.lt.ht,p=o.Common.lt.tv,r=i.Convert,f=r.Nh,l=i.Errors.Value,h=["text","color","backgroundColor"],k=u.SparklineEx,n(A,k),A.prototype.getBarcodeInfo=function(){return null},A.prototype.createFunction=function(){var n,r,t,i,n=this,r=this.getBarcodeInfo();if(r)return t=new c(r.fnName,r.minimum,r.maxmum),i=r.acceptsArrayArgIndex,t.acceptsArray=function(t){return t===i},t.evaluate=function(t){var t,e;t[i]=f(t[i])?t[i].array[0]:t[i],(t=n.t(t,r.properties)).type=r.type,t.isBarcode=!0;try{e=p(t),new y(null,e)}catch(t){return l}return t},t},A.prototype.paint=function(t,e,n,r,i,o,u){K(t,e,n,r,i,o,u)},A.prototype.t=H,t.BarcodeBase=e=A,n(O,q=e),O.prototype.getBarcodeInfo=function(){return{fnName:"BC_QRCODE",minimum:1,maxmum:16,type:"QRCode",acceptsArrayArgIndex:9,properties:h.concat(["errorCorrectionLevel","model","version","mask","connection","connectionNo","charCode","charset","quietZoneLeft","quietZoneRight","quietZoneTop","quietZoneBottom","quietZoneAddOn"])}},t.QRCode=o=O,n(E,L=e),E.prototype.getBarcodeInfo=function(){return{fnName:"BC_EAN13",minimum:1,maxmum:18,type:"EAN13",properties:h.concat(["showLabel","labelPosition","addOn","addOnLabelPosition","fontFontFamily","fontFontStyle","fontFontWeight","fontTextDecoration","fontTextAlign","fontFontSize","quietZoneLeft","quietZoneRight","quietZoneTop","quietZoneBottom"])}},t.EAN13=r=E,n(j,Z=e),j.prototype.getBarcodeInfo=function(){return{fnName:"BC_EAN8",minimum:1,maxmum:15,type:"EAN8",properties:h.concat(["showLabel","labelPosition","fontFontFamily","fontFontStyle","fontFontWeight","fontTextDecoration","fontTextAlign","fontFontSize","quietZoneLeft","quietZoneRight","quietZoneTop","quietZoneBottom"])}},t.EAN8=i=j,n(S,P=e),S.prototype.getBarcodeInfo=function(){return{fnName:"BC_CODABAR",minimum:1,maxmum:17,type:"Codabar",properties:h.concat(["showLabel","labelPosition","checkDigit","nwRatio","fontFontFamily","fontFontStyle","fontFontWeight","fontTextDecoration","fontTextAlign","fontFontSize","quietZoneLeft","quietZoneRight","quietZoneTop","quietZoneBottom"])}},t.Codabar=v=S,n(T,U=e),T.prototype.getBarcodeInfo=function(){return{fnName:"BC_CODE39",minimum:1,maxmum:19,type:"Code39",properties:h.concat(["showLabel","labelPosition","labelWithStartAndStopCharacter","checkDigit","nwRatio","fullASCII","fontFontFamily","fontFontStyle","fontFontWeight","fontTextDecoration","fontTextAlign","fontFontSize","quietZoneLeft","quietZoneRight","quietZoneTop","quietZoneBottom"])}},t.Code39=d=T,n(x,$=e),x.prototype.getBarcodeInfo=function(){return{fnName:"BC_CODE93",minimum:1,maxmum:17,type:"Code93",properties:h.concat(["showLabel","labelPosition","checkDigit","fullASCII","fontFontFamily","fontFontStyle","fontFontWeight","fontTextDecoration","fontTextAlign","fontFontSize","quietZoneLeft","quietZoneRight","quietZoneTop","quietZoneBottom"])}},t.Code93=w=x,n(M,G=e),M.prototype.getBarcodeInfo=function(){return{fnName:"BC_CODE128",minimum:1,maxmum:16,type:"Code128",properties:h.concat(["showLabel","labelPosition","codeSet","fontFontFamily","fontFontStyle","fontFontWeight","fontTextDecoration","fontTextAlign","fontFontSize","quietZoneLeft","quietZoneRight","quietZoneTop","quietZoneBottom"])}},t.Code128=b=M,n(B,z=e),B.prototype.getBarcodeInfo=function(){return{fnName:"BC_GS1_128",minimum:1,maxmum:16,type:"GS1_128",properties:h.concat(["showLabel","labelPosition","fontFontFamily","fontFontStyle","fontFontWeight","fontTextDecoration","fontTextAlign","fontFontSize","quietZoneLeft","quietZoneRight","quietZoneTop","quietZoneBottom"])}},t.GS1_128=g=B,n(_,V=e),_.prototype.getBarcodeInfo=function(){return{fnName:"BC_CODE49",minimum:1,maxmum:17,type:"Code49",properties:h.concat(["showLabel","labelPosition","grouping","groupNo","fontFontFamily","fontFontStyle","fontFontWeight","fontTextDecoration","fontTextAlign","fontFontSize","quietZoneLeft","quietZoneRight","quietZoneTop","quietZoneBottom"])}},t.Code49=m=_,n(N,W=e),N.prototype.getBarcodeInfo=function(){return{fnName:"BC_PDF417",minimum:1,maxmum:11,type:"PDF417",properties:h.concat(["errorCorrectionLevel","rows","columns","compact","quietZoneLeft","quietZoneRight","quietZoneTop","quietZoneBottom"])}},t.PDF417=R=N,n(D,X=e),D.prototype.getBarcodeInfo=function(){return{fnName:"BC_DATAMATRIX",minimum:1,maxmum:14,type:"DataMatrix",properties:h.concat(["eccMode","ecc200SymbolSize","ecc200EncodingMode","ecc00_140SymbolSize","structuredAppend","structureNumber","fileIdentifier","quietZoneLeft","quietZoneRight","quietZoneTop","quietZoneBottom"])}},t.DataMatrix=n=D,c&&(I(new o),I(new r),I(new i),I(new v),I(new d),I(new w),I(new b),I(new g),I(new m),I(new R),I(new n))},"./dist/plugins/barcode/lib/barcode.all.js":function(r){!function t(e,n){r.exports=n()}("undefined"!=typeof self?self:this,function(){return n=[function(t,n,I){"use strict";var i,r;function c(t){return"function"==typeof t}function e(t){return!!t&&t===t.window}function o(t){return void 0!==t}function u(t){return c(Number.isNaN)?Number.isNaN(t):t!=t}function a(t){return!u(+t)}function s(){for(var t,e,n,r,i,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1,n=arguments[2],r=0,i=t.length;r<i;)n(t.substring(r,r+e)),r+=e}function f(){for(var t,e,n,r,i,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1,n=arguments[2],r=0,i=t.length;r<i;)n(t.slice(r,r+e)),r+=e}function l(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"";return c(Array.from)?Array.from(t):Array.prototype.slice.call(t)}function h(){var t,e,n,t,e=l(0<arguments.length&&void 0!==arguments[0]?arguments[0]:""),n=[];return e.forEach(function(t){var t;"0"===t?n.push(0):n[n.length-1]&&0!==n[n.length]?(t=n.pop(),n.push(++t)):n.push(1)}),n}function v(t){var e;return(t=+t).toString(1<arguments.length&&void 0!==arguments[1]?arguments[1]:2)}function d(t){return t%2==0}function w(t){return t%2==1}function b(){var t,e,t,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;return"number"!=typeof t&&u(t=parseFloat(t))?e:t}function y(){var t,e,t,e=/[a-zA-Z]+/.exec(0<arguments.length&&void 0!==arguments[0]?arguments[0]:"");return e?e[0]:"px"}function p(t){var e,n,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"length",n=0;return t.forEach(function(t){t[e]>n&&(n=t[e])}),n}function g(t){for(var e,n,r,i,o,u,a,e=arguments.length,n=Array(1<e?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(c(Object.assign))return Object.assign.apply(Object,[t].concat(n));if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(i=Object(t),o=0;o<n.length;o++)if(null!=(u=n[o]))for(a in u)Object.prototype.hasOwnProperty.call(u,a)&&(i[a]=u[a]);return i}function m(n){if(null==n)throw new TypeError("Cannot convert undefined or null to object");for(var t=arguments.length,e=Array(1<t?t-1:0),r=1;r<t;r++)e[r-1]=arguments[r];return e.forEach(function(t){if(t)for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&("object"===i(t[e])&&"object"===i(n[e])?n[e]=m({},n[e]||{},t[e]):n[e]=t[e])}),n}function C(t,e){var n,r,i;if(c(t.repeat))return t.repeat(e);if(n=""+t,(e=(e=+e)!=e?0:e)<0)throw new RangeError("repeat count must be non-negative");if(e==1/0)throw new RangeError("repeat count must be less than infinity");if(e=Math.floor(e),0==n.length||0==e)return"";if(1<<28<=n.length*e)throw new RangeError("repeat count must not overflow maximum string size");for(r="",i=0;i<e;i++)r+=n;return r}function k(t){return c(Number.isInteger)?Number.isInteger(t):"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}function A(t,e){if(c(t.fill))return t.fill(e);for(var n=0;n<t.length;n++)t[n]=e;return t}function O(t,e,n){return c(t.padStart)?t.padStart(e,n):(e>>=0,n=String(void 0!==n?n:" "),t.length>e?t:((e-=t.length)>n.length&&(n+=C(n,e/n.length)),n.slice(0,e)+String(t)))}function E(t,e){r[t]=e}function j(t,e){var n;return 1.4*b(e.fontSize,12)}function S(t,e){return r.measureText(t,e)}function T(t,e){return(c(r.measureText)?(n.measureText=T=S,T):j)(t,e)}function x(t){var e;return b(t,12)}function M(t){return a(t)?b(t,12):r.convertUnit(t)}function B(t){return(c(r.convertUnit)?(n.convertUnit=B=M,B):x)(t)}function _(t){return a(t)?t+"px":t}function N(t){return t.originIsAbsoluteValue?0:t.relativeValue}function D(t){return t.originIsAbsoluteValue?t.pixelValue:0}Object.defineProperty(n,"__esModule",{value:!0}),i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n.isFunction=c,n.isWindow=e,n.isDefined=o,n.isNaN=u,n.isNumberLike=a,n.sliceString=s,n.sliceArray=f,n.str2Array=l,n.combineTruthy=h,n.convertRadix=v,n.isEven=d,n.isOdd=w,n.toNumber=b,n.getUnit=y,n.getMaxValue=p,n.assign=g,n.deepMerge=m,n.strRepeat=C,n.isInteger=k,n.fillArray=A,n.strPadStart=O,n.registerPlugin=E,n.measureText=T,n.convertUnit=B,n.fixSize2PixelDefault=_,n.getQuietZoneRelativeValue=N,n.getQuietZonePixelValue=D,r={}},function(F,t,R){"use strict";var e,n,r,i,o,u,a,c,s,f,l,h,q,v,d,w,b,y,p,g,L,Z,P,U,$,G;function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function C(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function k(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function A(t){var e,n,t,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"";return m(this,A),(n=C(this,(A.__proto__||Object.getPrototypeOf(A)).call(this))).name="BadArgumentsException",t=JSON.stringify(t),n.message=t+" is not a valid argument. "+e,n}function O(t){m(this,O);var e=C(this,(O.__proto__||Object.getPrototypeOf(O)).call(this));return e.name="TypeNotSupportException",e.message=t+" is not support!",e}function E(t){m(this,E);var e=C(this,(E.__proto__||Object.getPrototypeOf(E)).call(this));return e.name="NotAValidBarcodeEncoderException",e.message=t+" is not support!",e}function j(){m(this,j);var t=C(this,(j.__proto__||Object.getPrototypeOf(j)).call(this));return t.name="SubclassNotImplementException",t.message="must implement by subclass!",t}function S(t){m(this,S);var e=C(this,(S.__proto__||Object.getPrototypeOf(S)).call(this));return e.name="UnrecognizedRenderException",e.message=t+" is not support!",e}function T(t){m(this,T);var e=C(this,(T.__proto__||Object.getPrototypeOf(T)).call(this));return e.name="MethodNotImplementException",e.message=t+" doesn't have this method!",e}function x(){var t,e,n,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"Empty text",e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"";return m(this,x),(n=C(this,(x.__proto__||Object.getPrototypeOf(x)).call(this))).name="InvalidTextException",n.message=t+" is invalid. "+e,n}function M(t){m(this,M);var e=C(this,(M.__proto__||Object.getPrototypeOf(M)).call(this));return e.name="InvalidCharException",e.message=t+" is invalid.",e}function B(){m(this,B);var t=C(this,(B.__proto__||Object.getPrototypeOf(B)).call(this));return t.name="TextTooLargeException",t.message="Text is too larget to encode",t}function _(t){m(this,_);var e=C(this,(_.__proto__||Object.getPrototypeOf(_)).call(this));return e.name="ConnectionOverflowException",e.message="Max Connection Number is "+(t-1),e}function N(t){m(this,N);var e=C(this,(N.__proto__||Object.getPrototypeOf(N)).call(this));return e.name="GroupOverflowException",e.message="Max Group Number is "+(t-1),e}function D(t){m(this,D);var e=C(this,(D.__proto__||Object.getPrototypeOf(D)).call(this));return e.name="GroupSizeException",e.message="Group size is "+t+". The max group size is 9.",e}function I(){m(this,I);var t=C(this,(I.__proto__||Object.getPrototypeOf(I)).call(this));return t.name="InvalidStructureNumberException",t.message="InvalidStructureNumberException.",t}Object.defineProperty(t,"__esModule",{value:!0}),e=t.BadArgumentsException=(k(A,v=Error),A),n=t.TypeNotSupportException=(k(O,d=Error),O),r=t.NotAValidBarcodeEncoderException=(k(E,w=Error),E),i=t.SubclassNotImplementException=(k(j,b=Error),j),o=t.UnrecognizedRenderException=(k(S,y=Error),S),u=t.MethodNotImplementException=(k(T,p=Error),T),a=t.InvalidTextException=(k(x,g=Error),x),c=t.InvalidCharException=(k(M,L=Error),M),s=t.TextTooLargeException=(k(B,Z=Error),B),f=t.ConnectionOverflowException=(k(_,P=Error),_),l=t.GroupOverflowException=(k(N,U=Error),N),h=t.GroupSizeException=(k(D,$=Error),D),t.InvalidStructureNumberException=(k(I,G=Error),I)},function(t,d,w){"use strict";!function(t){var e,u,a,n,r,i,n,o,c,s,e;function f(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function l(t){return t&&t.__esModule?t:{default:t}}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(){var t,e,n,r,i,o;for(h(this,v),n=e=t=void 0,r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];if(3<=i.length)t=i[0],e=i[1],n=i[2];else if(2===i.length)(0,u.isFunction)(i[1])?(e=i[0],n=i[1]):(t=i[0],e=i[1]);else{if(1!==i.length)throw new a.BadArgumentsException(i);e=i[0]}this.dom="string"==typeof t?document.querySelector(t):t,this.callback=n&&n.bind(this),this.setOption(e)}Object.defineProperty(d,"__esModule",{value:!0}),e=function(t,e,n){return e&&f(t.prototype,e),n&&f(t,n),t},u=w(0),a=w(1),n=w(23),r=l(n),n=l(i=w(6)),o={renderType:"canvas",unitSize:"1px",color:"rgb(0,0,0)",backgroundColor:"rgb(255,255,255)",font:{fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",textDecoration:"none",textAlign:"center",fontSize:"12px"}},c={},s={},e(v,null,[{key:"getImageData",value:function t(){var e,n,e,n;return new v(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).getImageData()}},{key:"getDataUrl",value:function t(){var e,n,e,n;return new v(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).getDataUrl()}},{key:"setDefaultOptions",value:function t(){var e;c=(0,u.deepMerge)({},0<arguments.length&&void 0!==arguments[0]?arguments[0]:{})}},{key:"registerEncoder",value:function t(e,n){s[e]=n,v.supportType.push(e)}},{key:"registerPlugin",value:function t(e,n){(0,u.registerPlugin)(e,n)}}]),e(v,[{key:"mergeOption",value:function t(e){return this.option=(0,u.deepMerge)({},this.option,e),this.update(),this}},{key:"setOption",value:function t(e){return this.option=(0,u.deepMerge)({},o,c,e),this.update(),this}},{key:"update",value:function t(){var e,n,e=this.option,n=s[e.type];if(!n)throw new a.TypeNotSupportException(e.type);this.encoder=new n(e),this.render&&(this.render.destroy(),this.render=null),this.render=new r.default(this.dom,this.encoder),this.render.render(),(0,u.isFunction)(this.callback)&&this.callback()}},{key:"getImageData",value:function t(){return this.render.getImageData()}},{key:"getDataUrl",value:function t(){return this.render.getDataUrl()}},{key:"getSize",value:function t(){return this.render.size}},{key:"destroy",value:function t(){this.render&&this.render.destroy()}}]),(d.default=e=v).supportType=[],e.constants=n.default,(0,u.isWindow)(t)&&(t.Barcode=e)}.call(d,w(22))},function(F,t,e){"use strict";var l,h,e,v,n,r,i,o,u,a,c,s,f,d,w,b,y;function p(t){return t&&t.__esModule?t:{default:t}}function g(t){return 48<=t&&t<=57}function m(t){var e;return-1<" $%*+-./:".indexOf(String.fromCharCode(t))||48<=t&&t<=57||65<=t&&t<=90}function C(t){return 0<=t&&t<=255}function k(t){return 33087<=t&&t<=64587}function A(t,e){var n=o[t];return 1===e.length?n(e):e.every(function(t){return n(t)})}function O(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"UTF-8";return g(t)?"Numeric":m(t)?"Alphanumeric":"Shift_JIS"===e&&k(t)?"Kanji":"8BitByte"}function E(t){return 1<=t&&t<=9?{Numeric:10,Alphanumeric:9,"8BitByte":8,Kanji:8}:10<=t&&t<=26?{Numeric:12,Alphanumeric:11,"8BitByte":16,Kanji:10}:{Numeric:14,Alphanumeric:13,"8BitByte":16,Kanji:12}}function j(t){if(48<=t&&t<=57)return+String.fromCharCode(t);if(65<=t&&t<=90)return t-65+10;var e=a[String.fromCharCode(t)];if(e)return e;throw new l.InvalidTextException(String.fromCharCode(t))}function S(t){for(var e,n,e=[],n=0;n<t;n++)e.push((0,h.fillArray)(new Array(t),null));return e}function T(t){return c[t-1]}function x(t,e){var n,r,i,o,u,a,c,s,f,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:2,r=void 0;switch(e){case 1:r=0;break;case 0:r=1;break;case 3:r=2;break;case 2:r=3}for(u=[],a=(o=(i=2===n?w:b)[4*(t-1)+r]).length/3,c=0;c<a;c++)for(s=o[3*c],f=0;f<s;f++)u.push({total:o[3*c+1],data:o[3*c+2],ec:o[3*c+1]-o[3*c+2]});return u}function M(t){return d[t]}function B(t){return t.reduce(function(t,e){return t.push(e.slice(0)),t},[])}function _(t){for(var e,n,r,i,o,u,a,c,s,f,l,h,v,d,w,b,y,p,g,e=t.length,n=0,r=0;r<e;r++)for(i=0;i<e;i++){for(o=0,u=t[r][i],a=-1;a<=1;a++)if(!(r+a<0||e<=r+a))for(c=-1;c<=1;c++)i+c<0||e<=i+c||0==a&&0==c||u==t[r+a][i+c]&&(o+=1);5<o&&(n+=3+o-5)}for(s=0;s<e-1;s++)for(f=0;f<e-1;f++)l=0,t[s][f]&&(l+=1),t[s+1][f]&&(l+=1),t[s][f+1]&&(l+=1),t[s+1][f+1]&&(l+=1),0!=l&&4!=l||(n+=3);for(h=0;h<e;h++)for(v=0;v<e-6;v++)t[h][v]&&!t[h][v+1]&&t[h][v+2]&&t[h][v+3]&&t[h][v+4]&&!t[h][v+5]&&t[h][v+6]&&(n+=40);for(d=0;d<e;d++)for(w=0;w<e-6;w++)t[w][d]&&!t[w+1][d]&&t[w+2][d]&&t[w+3][d]&&t[w+4][d]&&!t[w+5][d]&&t[w+6][d]&&(n+=40);for(y=b=0;y<e;y++)for(p=0;p<e;p++)t[p][y]&&(b+=1);return n+=10*(g=Math.abs(100*b/e/e-50)/5)}function N(t,e,n,r){var i,o,u,t,n,a,c,s,f,i=4<arguments.length&&void 0!==arguments[4]&&arguments[4],o=t.length,u=B(t),t=(0,h.strPadStart)((0,h.convertRadix)(n,2),2,0),n=(0,h.strPadStart)((0,h.convertRadix)(e,2),3,0),a,c=v.default.getBCH15(parseInt(t+n,2),r);for(u[o-8][8]=i?0:1,s=15;0<s;s--)f=i?0:c>>s-1&1,9<s?(u[8][15-s]=f,u[o-1-15+s][8]=f):8<s?(u[8][15-s+1]=f,u[o-1-15+s][8]=f):(6<s?u[s][8]=f:u[s-1][8]=f,u[8][o-s]=f);return u}function R(t,e,n){var r,i,o,u,a,c,s,f,r=0,i=0,o=0,u=0;for(e.forEach(function(t){g(t)?r++:m(t)?i++:k(t)?u++:C(t)&&o++}),a=Math.ceil((5*i+3*r+13*u+8*o)/8),c=1;c<=40;c++)if(a<=(f=(s=x(c,t,n)).reduce(function(t,e){return t+e.data},0)))return c;throw new l.TextTooLargeException}function q(t,e){var t=y[t];return e<=9?t[0]:e<=26?t[1]:t[2]}function D(t){for(var e,n,r,e=[],n=0;n<t.length;n+=1)(r=t[n])<128||(255&r)==r?e.push(r):(e.push(r>>>8),e.push(255&r));return e}function I(t){for(var e,n,r,i,e=[],n=0,r=t.length;n<r;n++)(i=t[n])<128?e.push(i):i<2048?e.push(192|i>>6,128|63&i):i<55296||57344<=i?e.push(224|i>>12,128|i>>6&63,128|63&i):(i=65536+((1023&i)<<10|1023&t[++n]),e.push(240|i>>18,128|i>>12&63,128|i>>6&63,128|63&i));return e}function L(t,e){for(var n,r,i,o,n=void 0,r=(n=("Shift_JIS"===e?D:I)(t))[0],i=1,o=n.length;i<o;i++)r^=n[i];return r}function Z(t){var e=[];return(0,h.sliceString)(t,1,function(t){e.push(t.charCodeAt(0))}),e}Object.defineProperty(t,"__esModule",{value:!0}),l=e(1),h=e(0),e=e(13),v=p(e),o={Numeric:g,Alphanumeric:m,"8BitByte":C,Kanji:k},a={" ":36,$:37,"%":38,"*":39,"+":40,"-":41,".":42,"/":43,":":44},c=[[],[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]],w=[[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,f=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,7,37,13],[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]],b=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,46,36],[1,46,30],[1,46,24],[1,46,16],[1,72,57],[1,72,44],[1,72,36],[1,72,24],[1,100,80],[1,100,60],[1,100,50],[1,100,34],[1,134,108],[1,134,82],[1,134,68],[2,67,23],[1,170,136],[2,85,53],[2,85,43],[2,85,29],[1,212,170],[2,106,66],[2,106,54],[3,70,24],[2,128,104],[2,128,80],[2,128,64],[3,85,29],[2,153,123],[2,153,93],[3,102,52],[3,102,34],[2,179,145],[2,179,111],[3,119,61],[4,89,31],[2,208,168],[4,104,64],[4,104,52],[5,83,29],[2,238,192],[4,119,73],[4,119,61],[5,95,33],[3,180,144],[4,135,83],[4,135,69],[6,90,32],[3,203,163],[4,152,92],[5,122,62],[6,101,35]],t.default={defaultConfig:n={version:"auto",errorCorrectionLevel:"L",model:2,mask:"auto",connection:!(y={Alphanumeric:[[6,11],[7,15],[8,16]],Numeric:[[4,6,6,13],[4,7,8,15],[5,8,9,17]]}),connectionNo:0,charCode:void 0,charset:"UTF-8",quietZone:{top:4,left:4,right:4,bottom:4}},MODE_INDICATOR:r={ECI:7,Numeric:1,Alphanumeric:2,"8BitByte":4,Kanji:8,StructuredAppend:3,FNC1First:5,FNC2Second:9,Terminator:0},isMode:A,getSizeByVersion:u=function t(e){return 4*e+17},getCharacterCountIndicatorbitsNumber:E,getAlphanumericCharValue:j,createModules:S,getMaskFunc:M,getAlignmentPattersPos:T,getErrorCorrectionCharacteristics:x,padCodewords0:s=236,padCodewords1:17,getMaskScore:_,maskFuncs:d=[function(t,e){return(t+e)%2==0},function(t){return t%2==0},function(t,e){return e%3==0},function(t,e){return(t+e)%3==0},function(t,e){return(Math.floor(t/2)+Math.floor(e/3))%2==0},function(t,e){return t*e%2+t*e%3==0},function(t,e){return(t*e%2+t*e%3)%2==0},function(t,e){return(t*e%3+(t+e)%2)%2==0}],addFormatInformation:N,getEstimatedVersion:R,getCharMode:O,EC_INDICATOR:i={L:1,M:0,Q:3,H:2},getModeCheckInfo:q,getParityData:L,utf8Encode:I,getCharCode:Z,sjisEncode:D,cloneModules:B}},function(t,e,n){"use strict";var r,i,i,w,n,o;function u(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function a(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function l(){return c(this,l),s(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t},i=n(10),i=a(i),w=n(0),f(l,o=i.default),r(l,[{key:"adjustDesiredSize",value:function t(e){var n,r,n,i,o,u,a,e,c,s,n=this.config,r=n.desiredSize,n=n.showLabel,i=this.quietZone,o=this.fontHeight,u=this.containerWidth,a=this.containerHeight;r&&(e=e.length+(0,w.getQuietZoneRelativeValue)(i.left)+(0,w.getQuietZoneRelativeValue)(i.right),u=u-(0,w.getQuietZonePixelValue)(i.left)-(0,w.getQuietZonePixelValue)(i.right),s=c=void 0,r.forceRounding?s=(c=~~(u/e))<1?1:c:c=s=u/e,this.style.unitValue=s,this.style.fontSizeInUnit=o/s,a=(a=n?a-o:a)-(0,w.getQuietZonePixelValue)(i.top)-(0,w.getQuietZonePixelValue)(i.bottom),this.height=a/s-(0,w.getQuietZoneRelativeValue)(i.top)-(0,w.getQuietZoneRelativeValue)(i.bottom),Object.keys(i).forEach(function(t){i[t].originIsAbsoluteValue&&(i[t].relativeValue=i[t].pixelValue/s)}))}},{key:"convertToShape",value:function t(e){var n,r,i,o,u,a,c,a,s,f,l,h,v,d,n=this.label,r=this.quietZone,i=this.isLabelBottom,o=this.height,u=this.config.showLabel,a=this.style,c=a.fontSizeInUnit,a=a.textAlign;if(u||(c=0),s=[],f=r.left.relativeValue,l=r.top.relativeValue,h=void 0,i?h=l+o:(h=l,l+=c),(0,w.combineTruthy)(e).forEach(function(t){0!==t?(s.push({type:"rect",x:f,y:l,width:t,height:o}),f+=t):f++}),u){switch(v=r.left.relativeValue,d=e.length,a){case"center":v+=d/2;break;case"right":v+=d}s.push({type:"text",x:v,y:h,text:n,textAlign:a,maxWidth:d})}this.size=i?{width:f+r.right.relativeValue,height:h+c+r.bottom.relativeValue}:{width:f+r.right.relativeValue,height:l+o+r.bottom.relativeValue},this.shapes=s}}]),n=l,e.default=n},function(t,e,n){"use strict";var r,i,o,n,u,a,c,s,f,l,h;function v(t){return t&&t.__esModule?t:{default:t}}function d(t,e){if(t===l.FNC1)return f.FNC1;if(t===l.FNC2)return f.FNC2;if(t===l.FNC3)return f.FNC3;var n=void 0;switch(e){case"A":return n=u.indexOf(t);case"B":return n=a.indexOf(t);case"C":return+t}}function w(t,e){var e=c[d(t,e)];if(e)return e;throw new r.InvalidCharException(t)}function b(t){return c[t]}function y(t){var n="";return(0,i.str2Array)(t).forEach(function(t,e){(0,i.isEven)(e)?n+=(0,i.strRepeat)("1",+t):n+=(0,i.strRepeat)("0",+t)}),n}function p(t){return!/\D/.test(t)}Object.defineProperty(e,"__esModule",{value:!0}),r=n(1),i=n(0),n=v(o=n(6)),u=[" ","!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/","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","[","\\","]","^","_","\0","\x01","\x02","\x03","\x04","\x05","\x06","\x07","\b","\t","\n","\v","\f","\r","\x0e","\x0f","\x10","\x11","\x12","\x13","\x14","\x15","\x16","\x17","\x18","\x19","\x1a","\x1b","\x1c","\x1d","\x1e","\x1f"," "," "," "," "," "," "," "," "," "," "],a=[" ","!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/","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","[","\\","]","^","_","`","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","{","|","}","~","\x7f"," "," "," "," "," "," "," "," "," "," "],c=["212222","222122","222221","121223","121322","131222","122213","122312","132212","221213","221312","231212","112232","122132","122231","113222","123122","123221","223211","221132","221231","213212","223112","312131","311222","321122","321221","312212","322112","322211","212123","212321","232121","111323","131123","131321","112313","132113","132311","211313","231113","231311","112133","112331","132131","113123","113321","133121","313121","211331","231131","213113","213311","213131","311123","311321","331121","312113","312311","332111","314111","221411","431111","111224","111422","121124","121421","141122","141221","112214","112412","122114","122411","142112","142211","241211","221114","413111","241112","134111","111242","121142","121241","114212","124112","124211","411212","421112","421211","212141","214121","412121","111143","111341","131141","114113","114311","411113","411311","113141","114131","311141","411131","211412","211214","211232"],s="2331112",f={CodeC:99,CodeB:100,CodeA:101,FNC1:102,FNC2:97,FNC3:96,StartA:103,StartB:104,StartC:105},l={CodeC:String.fromCharCode(204),CodeB:String.fromCharCode(205),CodeA:String.fromCharCode(206),FNC1:n.default.FNC1,FNC2:n.default.FNC2,FNC3:n.default.FNC3,StartA:String.fromCharCode(208),StartB:String.fromCharCode(209),StartC:String.fromCharCode(210)},e.default={getCharValue:d,getCharPattern:w,getPatternByIndex:b,Code128Sym:f,stopPattern:s,defaultConfig:h={height:60,showLabel:!0,codeSet:"auto",quietZone:{top:0,right:10,bottom:0,left:10},labelPosition:"bottom"},Code128Char:l,encode:y,isValideNumber:p}},function(t,e,n){"use strict";var r,i,o,u,a,c;Object.defineProperty(e,"__esModule",{value:!0}),e.default={FNC1:r="\xcf",FNC2:i="\xca",FNC3:o="\xc9",DataMatrixFNC1:u="\u2000",DataMatrixMacro05:a="\u2004",DataMatrixMacro06:c="\u2005"}},function(t,e,n){"use strict";var r,i,i,h,n,o;function u(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function a(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function l(){return c(this,l),s(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t},i=n(10),i=a(i),h=n(0),f(l,o=i.default),r(l,[{key:"adjustDesiredSize",value:function t(e){var n,r,n,i,o,u,a,c,e,s,f,l,n=this.config,r=n.desiredSize,n=n.showLabel,i=this.quietZone,o=this.fontHeight,u=this.containerWidth,a=this.containerHeight;r&&(c=e[0].length+(0,h.getQuietZoneRelativeValue)(i.left)+(0,h.getQuietZoneRelativeValue)(i.right),e=e.length+(0,h.getQuietZoneRelativeValue)(i.top)+(0,h.getQuietZoneRelativeValue)(i.bottom),u=u-(0,h.getQuietZonePixelValue)(i.left)-(0,h.getQuietZonePixelValue)(i.right),a=a-(0,h.getQuietZonePixelValue)(i.top)-(0,h.getQuietZonePixelValue)(i.bottom),l=f=s=void 0,f=r.forceRounding?(s=(s=~~(u/c))<1?1:s,(f=~~(a/e))<1?1:f):(s=u/c,a/e),this.style.unitValue=l=Math.min(s,f),this.style.fontSizeInUnit=o/l,this.height=(a=n?a-o:a)/l-(0,h.getQuietZoneRelativeValue)(i.top)-(0,h.getQuietZoneRelativeValue)(i.bottom),Object.keys(i).forEach(function(t){i[t].originIsAbsoluteValue&&(i[t].relativeValue=i[t].pixelValue/l)}))}},{key:"convertToShape",value:function t(e){var n,r,i,n=this.quietZone,r=[],i=n.top.relativeValue;e.forEach(function(t){var e=n.left.relativeValue;t.forEach(function(t){t&&r.push({type:"rect",x:e,y:i,width:1,height:1}),e++}),i++}),this.shapes=r,this.size={width:e[0].length+n.left.relativeValue+n.right.relativeValue,height:i+n.bottom.relativeValue}}}]),n=l,e.default=n},function(t,e,n){"use strict";var l,i,r,n,o,u,a,c,s,f,h,v,d,w,b,y,p;function g(t){return t&&t.__esModule?t:{default:t}}function m(t){var e=u.values[u.keys.indexOf(t)];if(e)return{symbolRows:e[0],symbolColumns:e[1],symbolDataCapacity:e[2],eccLength:e[3],interleavedBlocks:e[4],regions:e[5],regionRows:e[6],regionColumns:e[7]};throw new i.BadArgumentsException({ecc200SymbolSize:t})}function C(t,e){if("squareAuto"!==t&&"rectangularAuto"!==t)return m(t);for(var n="squareAuto"==t?0:24;n<u.keys.length;++n)if(u.values[n][2]>=e)return m(u.keys[n]);throw new i.TextTooLargeException}function k(t){var e=void 0,n=void 0;switch(t){case 1:case 2:e=1;break;case 4:e=2;break;case 16:e=4;break;case 36:e=6}return{rowOfRegion:e,colOfRegion:n=~~(t/e)}}function A(t,e){var n,r;for(e=e||t,n=[],r=0;r<t;r++)n.push((0,l.fillArray)(new Array(e),null));return n}function O(t){return s<t?t==o.FNC1Input?"FNC1":"ExtendedASCII":v<=t&&t<=d?"Numeric":w<=t&&t<=b?"LowerCasedLetter":y<=t&&t<=p?"UpperCasedLetter":"ASCIIOther"}function E(t){var e;switch(O(t)){case"Numeric":return t-44;case"UpperCasedLetter":return t-51;default:switch(t){case 13:return 0;case 42:return 1;case 62:return 2;case 32:return 3}}return o.InvalidTripletValue}function j(t,e){if("X12"==t)return E(e);if(e<32)return e;if(32==e)return 3;if(e<48)return e-33;if(e<58)return e-44;if(e<65)return e-43;if(e<91)return"C40"==t?e-51:e-64;if(e<96)return e-69;if(96==e)return 0;if(e<123)return"C40"==t?e-96:e-83;if(e<128)return e-96;if(e==c||e==a)return e-128;throw new i.InvalidCharException(String.fromCharCode(e))}function S(t){return v<=t&&t<=d}function T(t,e){return"X12"===t?0:e<32?1:32==e?0:e<48?2:e<58?0:e<65?2:e<91?"C40"==t?0:3:e<96?2:96==e?3:e<123?"C40"===t?3:0:e==o.TripletFNC1||e==o.TripletUppershift?2:3}function x(t,e){var n,r,n=[];if(e==o.FNC1Input){if("X12"==t)throw new i.InvalidCharException("FNC1");e=o.TripletFNC1}else if(s<e){if("C40"!=t&&"Text"!=t)throw new i.InvalidCharException(String.fromCharCode(e));n.push(o.TripletShifts[2]),n.push(j(t,o.TripletUppershift)),e-=f}return 0<(r=T(t,e))&&n.push(o.TripletShifts[r]),n.push(j(t,e)),n}function M(t){return t<32||94<t?o.InvalidTripletValue:t&o.EDIFACTMask}function B(t,e,n){var t=t+o.PseudoRandomSeed*e%n+1;return n+1<t?t-n-1:t}function _(t){var e,n,r,e=[];if(0<t.length){for(n=t[0],r=1;r<t.length;++r)t[r].charSet!=n.charSet?(0<n.length&&e.push((0,l.assign)({},n)),n.charSet=t[r].charSet,n.start=t[r].start,n.length=t[r].length):n.length+=t[r].length;0<n.length&&e.push(n)}return e}function N(t,e,n,r){for(var i,o,u,a,c,s,f,i=e.regionColumns,o=e.regionRows,u=t[n*=o+=2],a=r*=i+=2;a<r+i;a++)(0,l.isEven)(a)?u[a]=1:u[a]=0;for(c=t[n+o-1],s=r;s<r+i;s++)c[s]=1;for(f=n;f<n+o;f++)t[f][r]=1,(0,l.isEven)(f)?t[f][r+i-1]=0:t[f][r+i-1]=1}function D(t,e,n,r,i){for(var o,u,a,c,s,f,l,h,o=e.regionColumns,u=e.regionRows,a=n*(u+2)+1,c=r*(o+2)+1,s=n*u,f=r*o,l=0;l<u;++l)for(h=0;h<o;++h)t[a+l][c+h]=i[s+l][f+h]}Object.defineProperty(e,"__esModule",{value:!0}),l=n(0),i=n(1),n=g(r=n(6)),o={FNC1Input:n.default.DataMatrixFNC1.charCodeAt(0),Macro05Input:n.default.DataMatrixMacro05.charCodeAt(0),Macro06Input:n.default.DataMatrixMacro06.charCodeAt(0),StructuredAppand:233,FileIdentifierMax:254,ASCIIPad:129,ASCIIUpperShift:235,ASCIIFNC1:232,Macro05:236,Macro06:237,TripletUppershift:158,TripletFNC1:155,TripletPad:0,InvalidTripletValue:255,LatchToC40:230,LatchToBase256:231,LatchToX12:238,LatchToText:239,LatchToEDIFACT:240,TripletUnlatch:254,EDIFACTUnlatch:31,PseudoRandomSeed:149,PadRandomBase:253,Base256RandomBase:255,Base256SmallBlockSize:249,EDIFACTMask:63,Unvisited:255,TripletShifts:[255,0,1,2],MaxCodeWrods:2178,MaxStructures:16,MaxLookAheadOffset:50},u={keys:["square10","square12","square14","square16","square18","square20","square22","square24","square26","square32","square36","square40","square44","square48","square52","square64","square72","square80","square88","square96","square104","square120","square132","square144","rectangular8x18","rectangular8x32","rectangular12x26","rectangular12x36","rectangular16x36","rectangular16x48"],values:[[10,10,3,5,1,1,8,8],[12,12,5,7,1,1,10,10],[14,14,8,10,1,1,12,12],[16,16,12,12,1,1,14,14],[18,18,18,14,1,1,16,16],[20,20,22,18,1,1,18,18],[22,22,30,20,1,1,20,20],[24,24,36,24,1,1,22,22],[26,26,44,28,1,1,24,24],[32,32,62,36,1,4,14,14],[36,36,86,42,1,4,16,16],[40,40,114,48,1,4,18,18],[44,44,144,56,1,4,20,20],[48,48,174,68,1,4,22,22],[52,52,204,84,2,4,24,24],[64,64,280,112,2,16,14,14],[72,72,368,144,4,16,16,16],[80,80,456,192,4,16,18,18],[88,88,576,224,4,16,20,20],[96,96,696,272,4,16,22,22],[104,104,816,336,6,16,24,24],[120,120,1050,408,6,36,18,18],[132,132,1304,496,8,36,20,20],[144,144,1558,620,10,36,22,22],[8,18,5,7,1,1,6,16],[8,32,10,11,1,2,6,14],[12,26,16,14,1,1,10,24],[12,36,22,18,1,2,10,16],[16,36,32,24,1,2,14,16],[16,48,49,28,1,2,14,22]]},s=127,v=48,d=57,w=97,b=122,y=65,p=90,e.default={getSymbolInfo:m,getInfoOfRegions:k,createModules:A,CONSTANTS:o,getTripletCharValue:j,getRandomizedValue:B,getCharType:O,getSuitableSymbolSize:C,isDigit:S,getTripletCharSetChannel:T,getX12Value:E,getEDIFACTValue:M,getTripletEncodeValues:x,mergeUnits:_,TripletUppershift:a=158,TripletFNC1:c=155,ASCIIMax:s,ExtendedASCIIMin:f=128,Space:h=32,NumericMin:v,NumericMax:d,LowerCasedLetterMin:w,LowerCasedLetterMax:b,UpperCasedLetterMin:y,UpperCasedLetterMax:p,setRegionData:D,setFinder:N}},function(t,e,n){"use strict";var r,i,o,u,a,c,s,f,l,h,v,d;Object.defineProperty(e,"__esModule",{value:!0}),l=["BBAAA","BABAA","BAABA","BAAAB","ABBAA","AABBA","AAABB","ABABA","ABAAB","AABAB"],e.default={NORMAL_GUARD:r="101",CENTRE_GUARD:i="01010",TABLE:a={A:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],B:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"],C:["1110010","1100110","1101100","1000010","1011100","1001110","1010000","1000100","1001000","1110100"]},leftStructure:c=["AAAAAA","AABABB","AABBAB","AABBBA","ABAABB","ABBAAB","ABBBAA","ABABAB","ABABBA","ABBABA"],rightStructure:s="CCCCCC",defaultConfig:h={height:60,showLabel:!0,labelPosition:"bottom",addOnHeight:"auto",addOnLabelPosition:"top",quietZone:{top:0,right:7,bottom:0,left:11,addOn:5}},get2DigitAddOnTable:v=function t(e){switch((e=parseInt(e))%4){case 0:return{leftStructure:"A",rightStructure:"A"};case 1:return{leftStructure:"A",rightStructure:"B"};case 2:return{leftStructure:"B",rightStructure:"A"};case 3:return{leftStructure:"B",rightStructure:"B"}}},ean8LeftStructure:f="AAAA",ADD_ON_DELINEATOR:u="01",get5DigitAddOnTable:d=function t(e){var n,r,e,i,o,n=+(e+="")[0]+ +e[2]+ +e[4],e=+e[1]+ +e[3];return l[(o=(r=3*n)+(i=9*e))%10]},ADD_ON_GUARD:o="1011"}},function(t,e,n){"use strict";var r,i,d,o;function u(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function w(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function b(t){var e,e,t,n,r,i,o,u,a,c,s,f,e,l,c,r,h,v,v,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};for(h in w(this,b),this.config=(0,d.deepMerge)({},e,t),t=(e=this.config).text,n=e.quietZone,r=e.unitSize,i=e.height,o=e.backgroundColor,u=e.color,a=e.renderType,c=e.labelPosition,s=e.desiredSize,f=e.showLabel,e=e.font,(0,d.isDefined)(t)&&(this.config.text+=""),(0,d.isDefined)(c)&&(this.isLabelBottom="top"!==c),r=(0,d.fixSize2PixelDefault)(r),e.fontSize=(0,d.fixSize2PixelDefault)(e.fontSize),l=(0,d.convertUnit)(r),c=(0,d.measureText)(t,e),this.fontHeight=c,this.style=(0,d.assign)({},e,{backgroundColor:o,color:u,fontSizeInUnit:r=f?c/l:0,unitValue:l,renderType:a,fontHeight:c}),n=(0,d.assign)({},n))n.hasOwnProperty(h)&&(v=n[h],(0,d.isNumberLike)(v)?n[h]={relativeValue:+v,originIsAbsoluteValue:!1}:(v=(0,d.convertUnit)(v),n[h]={relativeValue:v/l,originIsAbsoluteValue:!0,pixelValue:v}));this.quietZone=n,(0,d.isDefined)(i)&&((0,d.isNumberLike)(i)?this.height=+i-r-n.top.relativeValue-n.bottom.relativeValue:this.height=(0,d.convertUnit)(i)/l-r-n.top.relativeValue-n.bottom.relativeValue),s&&(this.containerWidth=(0,d.convertUnit)((0,d.fixSize2PixelDefault)(s.width)),this.containerHeight=(0,d.convertUnit)((0,d.fixSize2PixelDefault)(s.height))),this.shapes=[],this.size={width:0,height:0},this.validate()}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t},i=n(1),d=n(0),r(b,[{key:"validate",value:function t(){throw new i.SubclassNotImplementException}},{key:"adjustDesiredSize",value:function t(){throw new i.SubclassNotImplementException}},{key:"convertToShape",value:function t(){throw new i.SubclassNotImplementException}}]),e.default=b},function(t,e,n){"use strict";var r,i,o,u,u,a,c,a,s,a,f,a,l,a,h,n,v;function d(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function w(t){return t&&t.__esModule?t:{default:t}}function b(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function p(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function g(t){var e,t,n,e,e=1<arguments.length&&void 0!==arguments[1]&&arguments[1];return b(this,g),n=(t=y(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,t,c.default.defaultConfig))).config.text,(t.isUccEan128=e)&&n[0]!==c.default.Code128Char.FNC1&&(n=c.default.Code128Char.FNC1+n),t.text=n,t.label=n.replace(/[^\x20-\x7E]/g,""),e=t.calculateData(),t.adjustDesiredSize(e),t.convertToShape(e),t}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&d(t.prototype,e),n&&d(t,n),t},o=w(i=n(2)),u=n(4),u=w(u),a=n(5),c=w(a),a=n(27),s=w(a),a=n(28),f=w(a),a=n(29),l=w(a),a=n(30),h=w(a),p(g,v=u.default),r(g,[{key:"validate",value:function t(){}},{key:"calculateData",value:function t(){var e,n,r,i,e=this.config,n=this.text,r,i=void 0;if(this.isUccEan128)i=new h.default(n);else switch(e.codeSet){case"A":i=new s.default(n);break;case"B":i=new f.default(n);break;case"C":i=new l.default(n);break;default:i=new h.default(n)}return i.getData()}}]),n=g,e.default=n,o.default.registerEncoder("Code128",n)},function(t,e,n){"use strict";var r,i,i,C,n,o,n,u;function a(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function c(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function h(t){var t,e,n;return s(this,h),e=(t=f(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,t,o.default.defaultConfig))).style.textAlign,n=t.config.addOnLabelPosition,t.isTextGroup="group"===e,t.isAddOnLabelBottom="top"!==n,t}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t},i=n(4),i=c(i),C=n(0),n=n(9),o=c(n),l(h,u=i.default),r(h,[{key:"encode",value:function t(e,n){var i,r,i=(0,C.str2Array)(n),r;return(0,C.str2Array)(e).reduce(function(t,e,n){var r;return t+=o.default.TABLE[i[n]][e]},"")}},{key:"encodeChar",value:function t(e,n,r){var n,i,n=(0,C.str2Array)(n),i;return o.default.TABLE[n[r]][e]}},{key:"checksum",value:function t(e){var n,e,r,i,n,n=1<arguments.length&&void 0!==arguments[1]&&arguments[1],e=(0,C.str2Array)(e),r=n?C.isOdd:C.isEven,i,n=e.reduce(function(t,e,n){return e=+e,t+=r(n)?e:3*e},0)%10;return 0==n?0:10-n}},{key:"convertToShape",value:function t(e){var c,n,r,i,s,f,l,o,u,h,v,d,w,b,y,o,p,g,m,a,c=this.isTextGroup,n=this.isLabelBottom,r=this.addOnHeight,i=this.isAddOnLabelBottom,s=this.height,f=this.quietZone,l=this.config.showLabel,o=this.style,u=o.fontSizeInUnit,h=o.textAlign;l||(u=0),r=r||0,v=[],d=void 0,w=f.left.relativeValue,b=f.top.relativeValue,a=m=g=p=o=y=void 0,n?(d=s+5,y=b+s,o=l?s+u:d,i?g=(p=b)+(m="auto"===r?l?s:d:r):(p=(g=b)+u,m="auto"===r?d-u:r)):(d=s,s-=5,y=b,b+=u,o=l?d+u:d,i?(p=f.top.relativeValue,g=p+(m="auto"===r?l?s:d:r)):(g=f.top.relativeValue,p=f.top.relativeValue+u,m="auto"===r?d:r)),a=l?m+u:m,e.forEach(function(t){var e,n,r,i,o,u,a,e=b,n=s,r=y,i=c?"center":h,o=void 0,u=w;switch(t.role){case"GUARD":n=d,o=t.binary.length;break;case"ADDON":e=p,n=m,r=g,o=t.binary.length;break;case"LEFT_QUIET_ZONE":i="left",o=f.left.relativeValue,u=0;break;case"RIGHT_QUIET_ZONE":case"NO_ADDON_RIGHT_QUIET_ZONE":i="right",o=f.right.relativeValue;break;case"ADDON_QUIET_ZONE":o=f.addOn.relativeValue;break;case"ADDON_RIGHT_QUIET_ZONE":i="right",r=g,o=f.right.relativeValue;break;default:o=t.binary.length}if(l&&t.text){switch(i){case"center":u+=o/2;break;case"right":u+=o}a={type:"text",x:u,y:r,text:t.text,textAlign:i,maxWidth:o},"NO_ADDON_RIGHT_QUIET_ZONE"!==t.role&&"ADDON_RIGHT_QUIET_ZONE"!==t.role||(a.fontStyle="normal",a.fontWeight="normal",a.textDecoration="none"),v.push(a)}t.binary?(0,C.combineTruthy)(t.binary).forEach(function(t){0!==t?(v.push({type:"rect",x:w,y:e,width:t,height:n}),w+=t):w++}):"ADDON_QUIET_ZONE"===t.role&&(w+=o)}),this.size={width:w+f.right.relativeValue,height:Math.max(o,a)+f.top.relativeValue+f.bottom.relativeValue},this.shapes=v}},{key:"adjustDesiredSize",value:function t(e){var n,r,i,o,n,u,a,c,s,f,e,l,h,n=this.config,r=n.desiredSize,i=n.showLabel,o=n.addOn,n=n.addOnHeight,u=this.fontHeight,a=this.containerWidth,c=this.containerHeight,s=this.addOnHeightInPiexl,f=this.quietZone;r&&(e=(e=e.reduce(function(t,e){return e.binary&&(t+=e.binary.length),t},0))+(0,C.getQuietZoneRelativeValue)(f.left)+(0,C.getQuietZoneRelativeValue)(f.right),o&&(e+=(0,C.getQuietZoneRelativeValue)(f.addOn),a-=(0,C.getQuietZonePixelValue)(f.addOn)),a=a-(0,C.getQuietZonePixelValue)(f.left)-(0,C.getQuietZonePixelValue)(f.right),h=l=void 0,r.forceRounding?h=(l=~~(a/e))<1?1:l:l=h=a/e,this.style.unitValue=h,this.style.fontSizeInUnit=u/h,c=(c=i?c-u:c)-(0,C.getQuietZonePixelValue)(f.top)-(0,C.getQuietZonePixelValue)(f.bottom),this.height=c/h-(0,C.getQuietZoneRelativeValue)(f.top)-(0,C.getQuietZoneRelativeValue)(f.bottom),Object.keys(f).forEach(function(t){f[t].originIsAbsoluteValue&&(f[t].relativeValue=f[t].pixelValue/h)}),(0,C.isDefined)(o))&&"auto"!==n&&((n=(0,C.isNumberLike)(n)?+n:s/h)>this.height?this.addOnHeight=this.height:this.addOnHeight=n)}}]),n=h,e.default=n},function(t,e,n){"use strict";var r,i,o,u;function a(t){for(var e=0;0!=t;)e+=1,t>>>=1;return e}function c(t,e){for(var e,n,e=2===e?o:u,n=t<<10;0<=a(n)-a(r);)n^=r<<a(n)-a(r);return(t<<10|n)^e}function s(t){for(var e=t<<12;0<=a(e)-a(i);)e^=i<<a(e)-a(i);return t<<12|e}Object.defineProperty(e,"__esModule",{value:!0}),r=1335,i=7973,o=21522,u=10277,e.default={getBCH15:c,getBCH18:s}},function(t,e,n){"use strict";var r,i,f,i,o,c,u;function a(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t){var e,n,r,i,i;l(this,h),e=t.version,n=t.model,r=t.text,i=t.charCode,this.charCode=i||f.default.getCharCode(r),i=f.default.EC_INDICATOR[t.errorCorrectionLevel],this.config=t,this.errorCorrectionLevel=i,this.model=+n,e="auto"===e?this.getAutoVersion():+e,this.version=e,this.modulesCount=f.default.getSizeByVersion(e),this.charCountIndicatorBitsNumber=f.default.getCharacterCountIndicatorbitsNumber(e),this.errorCorrectionCharacteristics=f.default.getErrorCorrectionCharacteristics(e,i,this.model),this.totalDataCount=this.errorCorrectionCharacteristics.reduce(function(t,e){return t+e.data},0),this.totalDataBits=8*this.totalDataCount}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t},i=n(3),f=s(i),i=n(55),o=s(i),c=n(1),r(h,[{key:"getConnections",value:function t(){for(var e,n,r,i,o,u,a,c,s,f,l,e=this.totalDataBits,n=this.charCode,r=e-20,i=n.length,o=0,u=1,a=[],c=n[0];u<=i;)s=n.slice(o,u),f=this.analysisData(s),(l=this.encodeData(f)).length>r?(a.push(c),o=u-1):u===i&&a.push(s),c=s,u++;return a}},{key:"processConnection",value:function t(e){var n,r,i,r,i,o,u,u,a,n=this.totalDataBits,r=this.config,i=r.connection,r=r.connectionNo;if(r=+r,i){if((i=Math.ceil(e.length/(n-20)))-1<r)throw new c.ConnectionOverflowException(i);return u=(o=this.getConnections())[r],u=this.analysisData(u),a=this.encodeData(u,{connectionNo:r,connectionCnt:i})}if(e.length>n)throw new c.TextTooLargeException;return e}},{key:"padBuffer",value:function t(e){var n=this.totalDataBits;for(e.length+4<=n&&e.put(f.default.MODE_INDICATOR.Terminator,4);e.length%8!=0;)e.putBit(!1);for(;;){if(e.length>=n)break;if(e.put(f.default.padCodewords0,8),e.length>=n)break;e.put(f.default.padCodewords1,8)}}},{key:"getAutoVersion",value:function t(){for(var e,n,r,i,o,u,a,e=this.errorCorrectionLevel,n=this.charCode,r=this.model,i,o=f.default.getEstimatedVersion(e,n,r);o<40;o++)if(this.version=o,this.modulesCount=f.default.getSizeByVersion(this.version),this.charCountIndicatorBitsNumber=f.default.getCharacterCountIndicatorbitsNumber(this.version),this.errorCorrectionCharacteristics=f.default.getErrorCorrectionCharacteristics(this.version,e),this.totalDataCount=this.errorCorrectionCharacteristics.reduce(function(t,e){return t+e.data},0),this.totalDataBits=8*this.totalDataCount,u=this.analysisData(n),!((a=this.encodeData(u)).length>this.totalDataBits))return o;throw new c.TextTooLargeException}},{key:"analysisData",value:function t(o){var u,a,e,n,n,n,r,n,c,s,u=this.version,a=this.config.charset,e=f.default.getCharMode(o[0],a);switch(e){case"Alphanumeric":n=f.default.getModeCheckInfo(e,u),n=o.slice(1,1+n[0]),f.default.isMode("8BitByte",n)&&(e="8BitByte");break;case"Numeric":n=f.default.getModeCheckInfo(e,u),r=o.slice(1,1+n[0]),n=o.slice(1,1+n[1]),f.default.isMode("8BitByte",r)?e="8BitByte":f.default.isMode("Alphanumeric",n)&&(e="Alphanumeric")}return s=[c={mode:e,code:[]}],o.forEach(function(t,e){var n,r,i,r,i,r,i,n=f.default.getCharMode(t,a);c.mode===n?c.code.push(t):"8BitByte"===c.mode?"Kanji"===n?(c={mode:n,code:[t]},s.push(c)):"Numeric"===n?(r=f.default.getModeCheckInfo(n,u),i=o.slice(e,e+r[2]),o.length-e>=r[2]&&f.default.isMode(n,i)?(c={mode:n,code:[t]},s.push(c)):c.code.push(t)):"Alphanumeric"===n&&(r=f.default.getModeCheckInfo(n,u),i=o.slice(e,e+r[1]),o.length-e>=r[1])&&f.default.isMode(n,i)?(c={mode:n,code:[t]},s.push(c)):c.code.push(t):"Alphanumeric"!==c.mode||"Kanji"===n||"8BitByte"===n||"Numeric"===n&&(r=f.default.getModeCheckInfo(n,u),i=o.slice(e,e+r[2]),o.length-e>=r[2])&&f.default.isMode(n,i)?(c={mode:n,code:[t]},s.push(c)):c.code.push(t)}),s}},{key:"encodeData",value:function t(){throw new c.SubclassNotImplementException}},{key:"generateErrorCorrectionCode",value:function t(n){var e,r,i,e=this.errorCorrectionCharacteristics,r=[],i=0;return e.forEach(function(t){var e=n.getBuffer().slice(i,i+t.data);r.push({data:e,ec:(0,o.default)(e,t.ec,t.data)}),i+=t.data}),r}},{key:"getFinalMessage",value:function t(){throw new c.SubclassNotImplementException}},{key:"setModules",value:function t(){throw new c.SubclassNotImplementException}},{key:"maskModules",value:function t(){throw new c.SubclassNotImplementException}},{key:"autoMask",value:function t(){throw new c.SubclassNotImplementException}},{key:"addRectModule",value:function t(e,n,r,i){for(var o,u,a,c,s,o=4<arguments.length&&void 0!==arguments[4]&&arguments[4],u=this.modules,a=i+n,c=r+e;n<a;n++)for(s=e;s<c;s++)u[n][s]=+o}},{key:"addPositionDetectionPattern",value:function t(){var e,n,r,r,e,n=this.modules.length;this.addPattern(0,0,7),this.addRectModule(7,0,1,8,!1),this.addRectModule(0,7,8,1,!1),this.addPattern(r=n-7,0,7),this.addRectModule(r-1,0,1,8,!1),this.addRectModule(r-1,7,8,1,!1),this.addPattern(0,r=n-7,7),this.addRectModule(7,r-1,1,8,!1),this.addRectModule(0,r-1,8,1,!1)}},{key:"addTimingPattern",value:function t(){for(var e,n,r,i,e=this.modules,n=e.length,r=!0,i=8;i<n-7;i++)e[6][i]=+r,e[i][6]=+r,r=!r}},{key:"addPattern",value:function t(e,n,r){this.addRectModule(e,n,r,r,!0),this.addRectModule(e+1,n+1,r-2,r-2,!1),this.addRectModule(e+2,n+2,r-4,r-4,!0)}},{key:"getMatrix",value:function t(){throw new c.SubclassNotImplementException}}]),e.default=h},function(t,e,n){"use strict";var r,n,i,o;function u(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function a(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){c(this,s),this.mode="8BitByte",this.data=t,this.bytes="Shift_JIS"===e?i.default.sjisEncode(t):i.default.utf8Encode(t)}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t},n=n(3),i=a(n),r(s,[{key:"getMode",value:function t(){return i.default.MODE_INDICATOR["8BitByte"]}},{key:"getLength",value:function t(){return this.bytes.length}},{key:"write",value:function t(e){this.bytes.forEach(function(t){e.put(t,8)})}}]),e.default=s},function(t,e,n){"use strict";var r,i,o,u,a;function c(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function s(t){return t&&t.__esModule?t:{default:t}}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t){f(this,l),this.mode="Numeric",this.data=t}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),t},i=n(3),o=s(i),u=n(0),r(l,[{key:"getMode",value:function t(){return o.default.MODE_INDICATOR.Numeric}},{key:"getLength",value:function t(){return this.data.length}},{key:"write",value:function t(n){(0,u.sliceArray)(this.data,3,function(t){var e=parseInt(t.reduce(function(t,e){return t+String.fromCharCode(e)},""));switch(t.length){case 1:return void n.put(e,4);case 2:return void n.put(e,7);default:return void n.put(e,10)}})}}]),e.default=l},function(t,e,n){"use strict";var r,i,o,u,a;function c(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function s(t){return t&&t.__esModule?t:{default:t}}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t){f(this,l),this.mode="Alphanumeric",this.data=t}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),t},i=n(3),o=s(i),u=n(0),r(l,[{key:"getMode",value:function t(){return o.default.MODE_INDICATOR.Alphanumeric}},{key:"getLength",value:function t(){return this.data.length}},{key:"write",value:function t(r){(0,u.sliceArray)(this.data,2,function(t){var e,t,n,e=o.default.getAlphanumericCharValue(t[0]);2===t.length?(t=o.default.getAlphanumericCharValue(t[1]),r.put(n=45*e+t,11)):r.put(e,6)})}}]),e.default=l},function(t,e,n){"use strict";var r,n,i,o;function u(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function a(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t){c(this,s),this.mode="Kanji",this.data=t}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t},n=n(3),i=a(n),r(s,[{key:"getMode",value:function t(){return i.default.MODE_INDICATOR.Kanji}},{key:"getLength",value:function t(){return this.data.length}},{key:"write",value:function t(u){this.data.forEach(function(t){var e,n,r,i,o,e=void 0;33088<t&&t<40956?e=192*(n=(t-=33088)>>>8)+(r=255&t):57408<t&&t<60351&&(e=192*(i=(t-=49472)>>>8)+(o=255&t)),u.put(e,13)})}}]),e.default=s},function(t,e,n){"use strict";var r,i;function o(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];u(this,a),this.buffer=t,this.length=8*t.length,this.index=0}Object.defineProperty(e,"__esModule",{value:!0}),(r=function(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t})(a,[{key:"putBit",value:function t(e){var n=Math.floor(this.length/8);this.buffer.length<=n&&this.buffer.push(0),e&&(this.buffer[n]|=128>>>this.length%8),this.length+=1}},{key:"put",value:function t(e,n){for(var r=0;r<n;r+=1)this.putBit(1==(e>>>n-r-1&1))}},{key:"getAt",value:function t(e){var n=Math.floor(e/8);return 1==(this.buffer[n]>>>7-e%8&1)}},{key:"getBuffer",value:function t(){return this.buffer}},{key:"next",value:function t(){return this.index++,this.getAt(this.index-1)}}]),e.default=a},function(t,e,n){n(21),n(11),n(31),n(33),n(35),n(37),n(45),n(48),n(49),n(53),n(57),n(58),t.exports=n(2)},function(t,e,n){"use strict";var r,i,i,o,u,a,c,s,f,l,c,h;function v(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function d(t){return t&&t.__esModule?t:{default:t}}function w(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function b(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function y(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function p(t){var t,e,n,r,e,i,o,u,a,c,i,n,o;return w(this,p),n=(e=(t=b(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,t,s.default.defaultConfig))).config).checkDigit,r=e.text,e=e.nwRatio,o=(i=t.getTextEntity(r)).originStartPattern,u=i.startPattern,a=i.content,c=i.originStopPattern,i=i.stopPattern,n?(n=t.checksum(a),t.text=u+a+n+i,t.label=o+a+n+c):(t.text=u+a+i,t.label=r),t.nwRatio=+e,o=t.calculateData(),t.adjustDesiredSize(o),t.convertToShape(o),t}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&v(t.prototype,e),n&&v(t,n),t},i=n(4),i=d(i),u=d(o=n(2)),a=n(0),c=n(26),s=d(c),f=n(1),l=/^([A-D]?)([0-9\-\$\:\.\+\/]+)([A-D]?)$/,y(p,h=i.default),r(p,[{key:"validate",value:function t(){var e=this.config,n=e.text,e=e.nwRatio;if(!l.test(n))throw new f.InvalidTextException(n);if(2!=e&&3!=e)throw new f.BadArgumentsException({nwRatio:e},"NwRatio is 2 or 3")}},{key:"getTextEntity",value:function t(e){var e,n,r,i,e,o,e=l.exec(e),n=e[1],r,i=e[2],e=e[3],o;return{originStartPattern:n,startPattern:n||"A",content:i,originStopPattern:e,stopPattern:e||"B"}}},{key:"encode",value:function t(e){var n,r,i,o,n=this.nwRatio,r="",i=(0,a.strRepeat)("1",n),o=(0,a.strRepeat)("0",n);return(0,a.str2Array)(e).forEach(function(t,e){(0,a.isEven)(e)?r+="1"===t?i:"1":r+="1"===t?o:"0"}),r}},{key:"calculateData",value:function t(){var e,n,r,e=this,n=this.text,r="";return(0,a.sliceString)(n,1,function(t){r=r+e.encode(s.default.TABLE[t])+"0"}),r=r.substr(0,r.length-1)}},{key:"checksum",value:function t(e){var t;return t=0!==(t=(0,a.str2Array)(e).filter(function(t){return(0,a.isInteger)(+t)}).reverse().reduce(function(t,e,n){var e,n,e=(0,a.toNumber)(e);return(0,a.isEven)(n)?t+=9<(n=2*e)?n-9:n:t+=e,t},0)%10)?10-t:t}}]),c=p,e.default=c,u.default.registerEncoder("Codabar",c)},function(t,e){var n,n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";var r,i,o,i,u,a,c;function s(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function f(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){var n=void 0;return"svg"===t?(n=document.createElementNS("http://www.w3.org/2000/svg","svg")).setAttribute("xmlns","http://www.w3.org/2000/svg"):n=document.createElement("canvas"),n.setAttribute("width",e.width),n.setAttribute("height",e.height),n}function v(t,e){var n,r;switch(l(this,v),this.container=t,this.barcode=e,this.style=e.style,n=this.style.unitValue,this.size={width:e.size.width*n,height:e.size.height*n},r=h(this.style.renderType,this.size),this.style.renderType){case"svg":this.context=new u.default(r,this.style,n);break;case"canvas":this.context=new o.default(r,this.style,n);break;default:throw new a.UnrecognizedRenderException(this.style.renderType)}t&&t.appendChild(r),this.renderDom=r}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t},i=n(24),o=f(i),i=n(25),u=f(i),a=n(1),r(v,[{key:"render",value:function t(){var e,n,r,e=this.style,n=this.barcode.shapes,r=this.context;return r.clear(),r.setColor(e.color),r.setBackgroundColor(e.backgroundColor),n.forEach(function(t){"rect"===t.type&&r.drawRect(t),"text"===t.type&&r.drawText(t)}),this}},{key:"getImageData",value:function t(){if(this.context.getImageData)return this.context.getImageData();throw new a.MethodNotImplementException("getImageData")}},{key:"getDataUrl",value:function t(){return this.context.getDataUrl()}},{key:"destroy",value:function t(){this.container&&this.container.removeChild(this.renderDom)}}]),e.default=v},function(t,e,n){"use strict";var r,i;function o(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e,n){u(this,a),this.dom=t,this.style=e,this.ctx=this.dom.getContext("2d"),this.scale=n}Object.defineProperty(e,"__esModule",{value:!0}),(r=function(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t})(a,[{key:"setColor",value:function t(e){this.ctx.fillStyle=e}},{key:"setBackgroundColor",value:function t(e){var n=this.ctx,r=this.dom;n.save(),n.fillStyle=e,n.fillRect(0,0,r.width,r.height),n.restore()}},{key:"drawRect",value:function t(e){var n=this.ctx,r=this.scale;n.fillRect(e.x*r,e.y*r,e.width*r,e.height*r)}},{key:"drawText",value:function t(e){var n,r,i,o,u,n=this.ctx,r=this.style,i=this.scale;n.save(),n.font=(e.fontStyle||r.fontStyle)+" "+(e.fontWeight||r.fontWeight)+" "+r.fontSize+" "+r.fontFamily,n.textAlign=e.textAlign||r.textAlign,n.textBaseline="top",o=e.x*i,u=e.y*i,n.fillText(e.text,o,u,e.maxWidth*i),this.drawTextDecorationLine(e.text,o,u,e.textDecoration||r.textDecoration),n.restore()}},{key:"drawTextDecorationLine",value:function t(e,n,r,i){var o,i,u,a,e,o=void 0;switch(i){case"underline":o=.8;break;case"overline":o=.1;break;case"line-through":o=.5;break;default:return}switch(i=this.ctx,u=this.style.fontHeight,a=i.measureText(e).width,i.textAlign){case"center":n-=a/2;break;case"right":n-=a}i.lineWidth=1,i.beginPath(),i.moveTo(n,e=u*o+r),i.lineTo(n+a,e),i.stroke()}},{key:"clear",value:function t(){var e=this.ctx,n=this.dom;e.clearRect(0,0,n.width,n.height)}},{key:"getImageData",value:function t(){var e=this.ctx,n=this.dom;return e.getImageData(0,0,n.width,n.height)}},{key:"getDataUrl",value:function t(){return this.dom.toDataURL()}}]),e.default=a},function(t,e,n){"use strict";var r,a,i;function o(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(){return document.documentMode}function s(t,e,n){u(this,s),this.dom=t,this.style=e,this.scale=n,this.color="rgb(0,0,0)",this.addGroup()}Object.defineProperty(e,"__esModule",{value:!0}),a={center:"middle",left:"start",right:"end"},(r=function(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t})(s,[{key:"setColor",value:function t(e){this.color=e}},{key:"setBackgroundColor",value:function t(e){var n;this.dom.style.backgroundColor=e}},{key:"addGroup",value:function t(){var e=this.dom;this.g=document.createElementNS("http://www.w3.org/2000/svg","g"),this.g.setAttribute("shape-rendering","crispEdges"),e.appendChild(this.g)}},{key:"drawRect",value:function t(e){var n,r,i,o,n=this.g,r=this.scale,i=this.color,o=document.createElementNS("http://www.w3.org/2000/svg","rect");o.setAttribute("x",e.x*r),o.setAttribute("y",e.y*r),o.setAttribute("width",e.width*r),o.setAttribute("height",e.height*r),o.style.fill=i,n.appendChild(o)}},{key:"drawText",value:function t(e){var n,r,i,o,u,i,n=this.g,r=this.scale,i=this.color,o=this.style,u=document.createElementNS("http://www.w3.org/2000/svg","text");u.style.fill=i,u.style.fontSize=o.fontSize,u.style.fontFamily=o.fontFamily,u.style.fontStyle=e.fontStyle||o.fontStyle,u.style.fontWeight=e.fontWeight||o.fontWeight,u.style.textDecoration=e.textDecoration||o.textDecoration,u.style.textAnchor=a[e.textAlign||o.textAlign],u.textContent=e.text,u.textContent=this.clipString(e,u),c()?(i=this.meatureText(u),u.setAttribute("y",e.y*r+Math.abs(i.y))):(u.style.alignmentBaseline="before-edge",u.setAttribute("y",e.y*r)),u.setAttribute("x",e.x*r),n.appendChild(u)}},{key:"clipString",value:function t(e,n){var r,i,o,n,r,r=this.scale,i=e.text,o=e.maxWidth,n=this.meatureText(n);return n.width>(o*=r)?(r=Math.floor(o/n.width*i.length),e.text.substr(0,r)):i}},{key:"clear",value:function t(){var e;this.dom.removeChild(this.g),this.addGroup()}},{key:"meatureText",value:function t(e){return e.setAttribute("x",0),e.setAttribute("y",0),this.dom.appendChild(e),e.getBBox()}},{key:"getDataUrl",value:function t(){return"data:image/svg+xml;base64,"+btoa(this.dom.outerHTML)}}]),e.default=s},function(t,e,n){"use strict";var r,i;Object.defineProperty(e,"__esModule",{value:!0}),e.default={defaultConfig:r={height:60,showLabel:!0,labelPosition:"bottom",checkDigit:!1,quietZone:{top:0,right:10,bottom:0,left:10},nwRatio:3},TABLE:i={0:"0000011",1:"0000110",2:"0001001",3:"1100000",4:"0010010",5:"1000010",6:"0100001",7:"0100100",8:"0110000",9:"1001000","-":"0001100",$:"0011000",":":"1000101","/":"1010001",".":"1010100","+":"0010101",A:"0011010",B:"0101001",C:"0001011",D:"0001110"}}},function(t,e,n){"use strict";var r,i,o,u,a,c;function s(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function f(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t){l(this,h),this.text=t,this.validate()}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t},i=n(5),o=f(i),u=n(1),a=n(0),r(h,[{key:"validate",value:function t(){var e,n,e=this.text,n;if(!/^[\x00-\x5F\xC8-\xCF]+$/.test(e))throw new u.InvalidTextException(e)}},{key:"getData",value:function t(){var e,n,r,i,e=this.text,n=this.checksum(),r="",i=o.default.getPatternByIndex(o.default.Code128Sym.StartA);return r+=o.default.encode(i),(0,a.sliceString)(e,1,function(t){var t=o.default.getCharPattern(t,"A");r+=o.default.encode(t)}),r=(r+=o.default.encode(o.default.getPatternByIndex(n)))+o.default.encode(o.default.stopPattern)}},{key:"checksum",value:function t(){var e,n,r,e=this.text,n=0,r=0;return(0,a.sliceString)(e,1,function(t){r+=o.default.getCharValue(t,"A")*++n}),(r+=o.default.Code128Sym.StartA)%103}}]),e.default=h},function(t,e,n){"use strict";var r,i,o,u,a,c;function s(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function f(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t){l(this,h),this.text=t,this.validate()}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t},i=n(5),o=f(i),u=n(1),a=n(0),r(h,[{key:"validate",value:function t(){var e,n,e=this.text,n;if(!/^[\x20-\x7F\xC8-\xCF]+$/.test(e))throw new u.InvalidTextException(e)}},{key:"getData",value:function t(){var e,n,r,i,e=this.text,n=this.checksum(),r="",i=o.default.getPatternByIndex(o.default.Code128Sym.StartB);return r+=o.default.encode(i),(0,a.sliceString)(e,1,function(t){var t=o.default.getCharPattern(t,"B");r+=o.default.encode(t)}),r=(r+=o.default.encode(o.default.getPatternByIndex(n)))+o.default.encode(o.default.stopPattern)}},{key:"checksum",value:function t(){var e,n,r,e=this.text,n=0,r=0;return(0,a.sliceString)(e,1,function(t){r+=o.default.getCharValue(t,"B")*++n}),(r+=o.default.Code128Sym.StartB)%103}}]),e.default=h},function(t,e,n){"use strict";var r,i,o,u,a,c;function s(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function f(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t){l(this,h),this.text=t,this.validate()}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t},i=n(5),o=f(i),u=n(0),a=n(1),r(h,[{key:"validate",value:function t(){var e,n,e=this.text,n;if(!/^(\xCF*[0-9]{2}\xCF*)+$/.test(e))throw new a.InvalidTextException(e)}},{key:"getData",value:function t(){var e,n,r,i,e=this.text,n=this.checksum(),r="",i=o.default.getPatternByIndex(o.default.Code128Sym.StartC);return r+=o.default.encode(i),(0,u.sliceString)(e,2,function(t){var t=o.default.getCharPattern(t,"C");r+=o.default.encode(t)}),r=(r+=o.default.encode(o.default.getPatternByIndex(n)))+o.default.encode(o.default.stopPattern)}},{key:"checksum",value:function t(){var e,n,r,e=this.text,n=0,r=0;return(0,u.sliceString)(e,2,function(t){r+=o.default.getCharValue(t,"C")*++n}),(r+=o.default.Code128Sym.StartC)%103}}]),e.default=h},function(t,e,n){"use strict";var r,i,s,o,u,f,l,h,a;function c(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function v(t){return t&&t.__esModule?t:{default:t}}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function w(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1];d(this,w),this.text=t,this.isUccEan128=e,this.validate()}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),t},i=n(5),s=v(i),o=n(0),u=n(1),f="A",l="B",h="C",r(w,[{key:"validate",value:function t(){var e,n,e=this.text,n;if(!/^[\x00-\x7F\xC8-\xD3]+$/.test(e))throw new u.InvalidTextException(e)}},{key:"calculateGroup",value:function t(){var e,n,r,i,o,u,a,c,e=this.text,n,r={code:this.isUccEan128?h:l,text:""},i=[];for(i.push(r),o=0,u=e.length;o<u;o++){if(a=r.code,c=e[o],r.code!==h&&o+3<u&&s.default.isValideNumber(e.substr(o,4))||r.code===h&&o+1<u&&s.default.isValideNumber(e.substr(o,2)))a=h,c+=e[++o];else if(a=r.code===h?l:r.code,s.default.getCharValue(c,a)<0&&(a=r.code===f?l:f,s.default.getCharValue(c,a)<0))continue;r.code!==a?i.push(r={code:a,text:c}):r.text+=c}return i.filter(function(t){return t.text})}},{key:"getData",value:function t(){var e,n,r,e=this.calculateGroup(),n=this.checksum(e),r="";return e.forEach(function(e,t){var t,t;0===t?(t=s.default.getPatternByIndex(s.default.Code128Sym["Start"+e.code]),r+=s.default.encode(t)):(t=s.default.getPatternByIndex(s.default.Code128Sym["Code"+e.code]),r+=s.default.encode(t)),e.code===h?(0,o.sliceString)(e.text,2,function(t){r+=s.default.encode(s.default.getCharPattern(t,e.code))}):(0,o.sliceString)(e.text,1,function(t){r+=s.default.encode(s.default.getCharPattern(t,e.code))})}),r=(r+=s.default.encode(s.default.getPatternByIndex(n)))+s.default.encode(s.default.stopPattern)}},{key:"checksum",value:function t(e){var r=0,i=0;return e.forEach(function(t,e){var n,t,e,n=t.code,t=t.text;0===e?i+=s.default.Code128Sym["Start"+n]:(e=s.default.Code128Sym["Code"+n],i+=e*++r),n===h?(0,o.sliceString)(t,2,function(t){i+=s.default.getCharValue(t,n)*++r}):(0,o.sliceString)(t,1,function(t){i+=s.default.getCharValue(t,n)*++r})}),i%103}}]),e.default=w},function(t,e,n){"use strict";var r,i,i,o,u,a,c,s,f,c,l;function h(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function v(t){return t&&t.__esModule?t:{default:t}}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function w(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function b(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function y(t){var t,e,n,r,i,o,e,i,r,r,u,a,u,r;return d(this,y),n=(e=(t=w(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,t,s.default.defaultConfig))).config).text,r=e.checkDigit,i=e.fullASCII,o=e.nwRatio,e=e.labelWithStartAndStopCharacter,i=i?s.default.getFullASCIIChar(n):n,r?(r=s.default.getMod43Val(i),t.text=s.default.START_STOP_CHARACTERS+i+r+s.default.START_STOP_CHARACTERS,u=s.default.START_STOP_CHARACTERS+(r=n+r)+s.default.START_STOP_CHARACTERS,t.label=e?u:r):(t.text=s.default.START_STOP_CHARACTERS+i+s.default.START_STOP_CHARACTERS,u=s.default.START_STOP_CHARACTERS+n+s.default.START_STOP_CHARACTERS,t.label=e?u:n),t.nwRatio=+o,r=t.calculateData(),t.adjustDesiredSize(r),t.convertToShape(r),t}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&h(t.prototype,e),n&&h(t,n),t},i=n(4),i=v(i),u=v(o=n(2)),a=n(0),c=n(32),s=v(c),f=n(1),b(y,l=i.default),r(y,[{key:"validate",value:function t(){var e,n,r,e,i,e=this.config,n=e.text,r=e.fullASCII,e=e.nwRatio,i;if(!r&&!/^[0-9A-Z\-\.\ \$\/\+\%]+$/.test(n))throw new f.InvalidTextException(n);if(2!=e&&3!=e)throw new f.BadArgumentsException({nwRatio:e},"NwRatio is 2 or 3")}},{key:"encode",value:function t(e){var n,r,i,o,n=this.nwRatio,r="",i=(0,a.strRepeat)("1",n),o=(0,a.strRepeat)("0",n);return(0,a.str2Array)(e).forEach(function(t,e){(0,a.isEven)(e)?r+="1"===t?i:"1":r+="1"===t?o:"0"}),r}},{key:"calculateData",value:function t(){var e,n,r,e=this,n=this.text,r="";return(0,a.sliceString)(n,1,function(t){r=r+e.encode(s.default.TABLE[t])+"0"}),r=r.substr(0,r.length-1)}}]),c=y,e.default=c,u.default.registerEncoder("Code39",c)},function(t,e,n){"use strict";var r,i,n,o,u,a,c;function s(t){var e=0;return(0,i.sliceString)(t,1,function(t){e+=a.indexOf(t)}),a[e%43]}function f(e){var n="";return(0,i.sliceString)(e,1,function(t){var t=c[t.charCodeAt(0)];if(!t)throw new r.InvalidTextException(e);n+=t}),n}Object.defineProperty(e,"__esModule",{value:!0}),r=n(1),i=n(0),n={height:60,showLabel:!0,checkDigit:!1,fullASCII:!1,labelPosition:"bottom",nwRatio:3,labelWithStartAndStopCharacter:!1,quietZone:{top:0,right:10,bottom:0,left:10}},o={0:"000110100",1:"100100001",2:"001100001",3:"101100000",4:"000110001",5:"100110000",6:"001110000",7:"000100101",8:"100100100",9:"001100100",A:"100001001",B:"001001001",C:"101001000",D:"000011001",E:"100011000",F:"001011000",G:"000001101",H:"100001100",I:"001001100",J:"000011100",K:"100000011",L:"001000011",M:"101000010",N:"000010011",O:"100010010",P:"001010010",Q:"000000111",R:"100000110",S:"001000110",T:"000010110",U:"110000001",V:"011000001",W:"111000000",X:"010010001",Y:"110010000",Z:"011010000","-":"010000101",".":"110000100"," ":"011000100",$:"010101000","/":"010100010","+":"010001010","%":"000101010","*":"010010100"},u="*",a=(0,i.str2Array)("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"),c=["%U","$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","%A","%B","%C","%D","%E"," ","/A","/B","/C","/D","/E","/F","/G","/H","/I","/J","/K","/L","-",".","/O","0","1","2","3","4","5","6","7","8","9","/Z","%F","%G","%H","%I","%J","%V","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","%K","%L","%M","%N","%O","%W","+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","%P","%Q","%R","%S","%T"],e.default={TABLE:o,START_STOP_CHARACTERS:u,defaultConfig:n,getMod43Val:s,getFullASCIIChar:f}},function(t,e,n){"use strict";var r,i,i,o,u,a,B,_,N,a,c;function s(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function f(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function v(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function d(t){var t,e,e;return l(this,d),e=(t=h(this,(d.__proto__||Object.getPrototypeOf(d)).call(this,t,B.default.defaultConfig))).config.text,t.text=e,t.label=e.replace(/[\xc9-\xcf]/g,""),t.mode=B.default.isNumericOnly(e)?2:0,t.getModes(),e=t.calculateData(),t.adjustDesiredSize(e),t.convertToShape(e),t}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t},i=n(7),i=f(i),u=f(o=n(2)),a=n(34),B=f(a),_=n(0),N=n(1),v(d,c=i.default),r(d,[{key:"validate",value:function t(){var e,n,e,r,e=this.config,n=e.text,e=e.grouping,r;if(!/^[\x00-\x80\xcf\xca\xc9]+$/.test(n))throw new N.InvalidTextException(n);if(!e&&81<n.length)throw new N.TextTooLargeException}},{key:"getModes",value:function t(){var e,n,r,n,r,i,o,u,a,c,e=this.text,n=this.config,r=n.grouping,n=n.groupNo;if(r&&1<(r=B.default.getTextGroup(e)).length){if(9<r.length)throw new N.GroupSizeException(r.length);if(n>r.length-1)throw new N.GroupOverflowException(r.length);this.groupCount=r.length,this.mode=3,e=r[n]}for(i=[],u=o=0,a=e.length;o<a;){for(;u<a&&!(e[u]<"0"||"9"<e[u]);)u++;o=5<=u-o?(i.push({mode:"number",text:e.substring(o,u)}),u):((c=i[i.length-1])&&"alpha"===c.mode?c.text+=e.substring(o,u+1):i.push({mode:"alpha",text:e.substring(o,u+1)}),++u)}this.modes=i}},{key:"encodeNumeric",value:function t(e){var n=void 0,r=void 0;switch(e.length){case 3:return[~~((n=+e)/48),n%48];case 4:return[~~((n=+e+1e5)/2304),~~(n%2304/48),n%48];case 5:return[~~((n=+e)/2304),~~(n%2304/48),n%48];case 6:return n=e.substr(0,5),this.encodeNumeric(n).concat([+e[5]]);case 7:return n=e.substr(0,4),r=e.substr(4,3),this.encodeNumeric(n).concat(this.encodeNumeric(r));case 8:return n=e.substr(0,5),r=e.substr(5,3),this.encodeNumeric(n).concat(this.encodeNumeric(r));case 9:return n=e.substr(0,5),r=e.substr(5,4),this.encodeNumeric(n).concat(this.encodeNumeric(r));default:return n=e.substr(0,5),r=e.substr(5,e.length),this.encodeNumeric(n).concat(this.encodeNumeric(r))}}},{key:"encodeAlpha",value:function t(e){return(0,_.str2Array)(e).reduce(function(t,e){return t=t.concat(B.default.getCharValue(e))},[])}},{key:"calculateData",value:function t(){var r,e,i,n,o,u,e,a,c,o,n,s,f,l,h,v,d,w,b,y,p,g,m,C,e,k,A,O,E,j,S,T,x,M,r=this,e=this.modes,i=this.mode,n=this.groupCount,o=this.config.groupNo,u=e.reduce(function(t,e,n){return(t="number"===e.mode?(0===n&&2!==i&&t.push(B.default.CODE_NS),t.concat(r.encodeNumeric(e.text))):t.concat(r.encodeAlpha(e.text))).push(B.default.CODE_NS),t},[]);for(u.pop(),3===i&&u.unshift(B.default.getGroupInfo(o,n)),e=u.length%7;u.length%7!=0;)u.push(B.default.CODE_NS);if(a=[],(0,_.sliceArray)(u,7,function(t){var e=t.reduce(function(t,e){return t+e},0);t.push(e%49),a=a.concat(t)}),(6<=(c=u.length/7)%8||2<e||0==e||c%8==1)&&(a=a.concat((0,_.fillArray)(new Array(8),B.default.CODE_NS)),c++),8<c)throw new N.TextTooLargeException;if(s=(a[a.length-2]=o=7*(c-2)+i)*(n=B.default.getWeight(0,0)).z,f=o*n.y,l=o*n.x,h=8*(c-1)/2,6<c){for(d=v=0;v<h;v++,d+=2)s+=(w=B.default.getWeight(1+~~(v/4),v%4)).z*(49*a[d]+a[d+1]);a[a.length-8]=~~((s%=2401)/49),a[a.length-7]=~~(s%49)}for(h++,y=b=0;b<h;b++,y+=2)f+=(p=B.default.getWeight(1+~~(b/4),b%4)).y*(49*a[y]+a[y+1]);for(a[a.length-6]=~~((f%=2401)/49),a[a.length-5]=~~(f%49),h++,m=g=0;g<h;g++,m+=2)l+=(C=B.default.getWeight(1+~~(g/4),g%4)).x*(49*a[m]+a[m+1]);for(a[a.length-4]=~~((l%=2401)/49),a[a.length-3]=~~(l%49),e=a.slice(8*c-8,8*c-1),a[a.length-1]=e.reduce(function(t,e){return t+e},0)%49,k=[],O=a.length,E=A=0;A<O;A+=8,E++){for(j=a.slice(A,A+8),k.push(S=[]),x=T=0;T<8;T+=2,x++)M=49*j[T]+j[T+1],S.push(B.default.getParityPattern(M,E,x,c));S.unshift(B.default.START_PATTERN),S.push(B.default.STOP_PATTERN)}return k}},{key:"convertToShape",value:function t(n){var e,r,i,o,u,a,c,a,s,f,l,h,v,d,w,b,y,e=this.label,r=this.isLabelBottom,i=this.height,o=this.quietZone,u=this.config.showLabel,a=this.style,c=a.fontSizeInUnit,a=a.textAlign;if(u||(c=0),s=[],l=(i-(f=1))/n.length-1,h=70+o.left.relativeValue+o.right.relativeValue,v=0,d=o.top.relativeValue,w=void 0,r?w=d+i:(w=d,d+=c),s.push({type:"rect",x:v,y:d,width:h,height:1}),d+=1,n.forEach(function(t,e){v=o.left.relativeValue,t.forEach(function(t){(0,_.combineTruthy)(t).forEach(function(t){0!==t?(s.push({type:"rect",x:v,y:d,width:t,height:l}),v+=t):v++})}),0===e&&e===n.length-1||(s.push({type:"rect",x:o.left.relativeValue,y:d-1,width:70,height:1}),d+=1+l)}),s.push({type:"rect",x:0,y:d-1,width:h,height:1}),u){switch(b=0,y=h,a){case"center":b+=y/2;break;case"right":b+=y}s.push({type:"text",x:b,y:w,text:e,textAlign:a,maxWidth:y})}this.size=r?{width:v+o.right.relativeValue,height:w+c+o.bottom.relativeValue}:{width:v+o.right.relativeValue,height:d+o.bottom.relativeValue},this.shapes=s}},{key:"adjustDesiredSize",value:function t(e){var n,r,n,i,o,u,a,e,c,n=this.config,r=n.desiredSize,n=n.showLabel,i=this.quietZone,o=this.fontHeight,u=this.containerWidth,a=this.containerHeight;r&&(e=(e=e[0].reduce(function(t,e){return t+e.length},0))+(0,_.getQuietZoneRelativeValue)(i.left)+(0,_.getQuietZoneRelativeValue)(i.right),u=u-(0,_.getQuietZonePixelValue)(i.left)-(0,_.getQuietZonePixelValue)(i.right),c=void 0,c=r.forceRounding?(c=~~(u/e))<1?1:c:u/e,this.style.unitValue=c,this.style.fontSizeInUnit=o/c,this.height=(a=n?a-o:a)/c-(0,_.getQuietZoneRelativeValue)(i.top)-(0,_.getQuietZoneRelativeValue)(i.bottom),Object.keys(i).forEach(function(t){i[t].originIsAbsoluteValue&&(i[t].relativeValue=i[t].pixelValue/c)}))}}]),a=d,e.default=a,u.default.registerEncoder("Code49",a)},function(t,e,n){"use strict";var r,i,o,u,a,c,s,f,l,h,v,d,w;function b(t){return t&&t.__esModule?t:{default:t}}function y(t){var e;return/^\d{5,81}$/.test(t)}function p(t){var e,e,n,e=l.indexOf(t);return-1<e?[e]:(e=t.charCodeAt(0),(0,o.str2Array)(n=h[e]).map(function(t){return l.indexOf(t)}))}function g(t,e){var t=s[t][e];return{x:t[0],y:t[1],z:t[2]}}function m(t,e,n,r){var i,o,u,i,o=void 0,u=void 0;return(u=((o=!(e===r-1)&&f[e][n])?a:c)[t]).toString(2)}function C(t,e){for(var n=2,r=1;n<e;)r+=n,n++;return r+t}function k(t){return(0,o.str2Array)(t).reduce(function(t,e){return-1<l.indexOf(e)?t++:t+=2,t},0)}function A(t){for(var e,n,r,i,o,e=0,n=1,r=t.length,i=[];n<r;)48<k(o=t.substring(e,n))&&(i.push(t.substring(e,n-1)),e=n-1),n++;return i.push(t.substring(e,n)),i}Object.defineProperty(e,"__esModule",{value:!0}),i=b(r=n(6)),o=n(0),a=[51520,62032,60576,64296,58784,63848,56128,63184,64948,50336,61736,39232,58960,63892,56480,63272,64970,35648,58064,52640,62312,47936,61136,64436,49744,36e3,58152,52816,62356,48288,61224,64458,34208,57704,50896,61876,40352,59240,63962,57040,63412,49448,34384,57748,50984,61898,40528,59284,57128,63434,33488,50024,36560,58292,53096,62426,48848,61364,33576,50068,36648,58314,53140,33128,49588,34664,57818,51124,40808,59354,57268,53568,62544,64788,59808,64104,55104,62928,64884,51360,61992,45376,60496,64276,37696,58576,63796,55712,63080,64922,52128,62184,46912,60880,64372,50256,61716,39072,58920,63882,56400,63252,35232,57960,52432,62260,47520,61032,64410,50640,61812,39840,59112,63930,56784,63348,49704,35920,58132,52776,62346,48208,61204,34e3,57652,50792,61850,40144,59188,56936,63386,49896,36304,58228,52968,62394,48592,61300,49428,34344,57738,50964,40488,59274,33384,49972,36456,58266,53044,48744,61338,49524,34536,57786,51060,40680,59322,57204,33556,50058,36628,33076,49562,34612,51098,40756,33652,50106,36724,53178,49012,53408,62504,64778,41792,59600,64052,54176,62696,64826,44864,60368,64244,51280,61972,45216,60456,64266,37280,58472,63770,55504,63028,51664,62068,45984,60648,64314,38816,58856,63866,56272,63220,50216,61706,38992,58900,56360,63242,35024,57908,52328,62234,47312,60980,50408,61754,39376,58996,56552,63290,35792,58100,52712,62330,48080,61172,49684,35880,58122,52756,33896,57626,50740,40040,59162,56884,49780,36072,58170,52852,48360,61242,34280,57722,50932,40424,59258,57076,49418,34324,50954,33332,49946,36404,53018,49466,34420,51002,40564,57146,33524,50042,36596,53114,48884,33546,33050,34586,33594,36666,33146,34682,40826,53328,62484,41376,59496,64026,53712,62580,42912,59880,64122,55248,62964,51240,61962,45136,60436,37072,58420,55400,63002,51432,62010,45520,60532,37840,58612,55784,63098,52200,62202,47056,60916,50196,38952,58890,34920,57882,52276,47208,60954,50292,39144,58938,56436,35304,57978,52468,47592,61050,50676,39912,59130,56820,49674,35860,33844,50714,39988,49722,35956,52794,48244,34036,50810,40180,56954,49914,36340,52986,48628,34314,33306,36378,34362,40506,33402,36474,48762,34554,40698,53288,62474,41168,59444,53480,62522,41936,59636,54248,62714,45008,60404,51220,36968,58394,55348,51316,45288,60474,37352,58490,55540,51700,46056,60666,38888,58874,56308,50186,34868,52250,50234,39028,56378,35060,52346,47348,50426,39412,56570,35828,52730,48116,33818,35898,33914,40058,36090,48378,34298,40442,62752,64840,56e3,63152,64940,51776,62096,60704,64328,52576,62296,47808,61104,64428,50464,61768,39488,59024,63908,56608,63304,64978,50864,61868,40288,59224,63958,57008,63404,49808,36128,58184,52880,62372,48416,61256,64466,50008,36528,58284,53080,62422,48816,61356,49480,34448,57764,51016,61906,40592,59300,57160,63442,49580,34648,57814,51116,40792,59350,57260,33608,50084,36680,58322,53156,48968,61394,59744,64088,54976,62896,64876,53824,62608,64804,60192,64200,37568,58544,63788,55648,63064,64918,52064,62168,46784,51488,62024,45632,60560,64292,38464,58768,63844,56096,63176,64946,35168,57944,52400,62252,47456,61016,64406,50608,61804,39776,50320,61732,39200,58952,63890,56464,63268,35616,58056,52624,62308,47904,61128,64434,33968,57644,50776,61846,40112,59180,56920,63382,49880,36272,49736,35984,58148,48560,52808,62354,48272,61220,34192,57700,50888,61874,40336,59236,57032,63410,33368,49964,36440,58262,53036,48728,61334,49516,34520,49444,34376,57746,40664,50980,40520,59282,57124,33480,50020,36552,58290,53092,48840,61362,33068,49558,34604,51094,40748,33644,33572,36716,50066,36644,49004,53138,33124,49586,34660,51122,40804,57266,41664,59568,64044,54112,62680,64822,53536,62536,64786,44736,60336,64236,42560,59792,64100,55072,62920,64882,37216,58456,63766,55472,63020,51632,62060,45920,51344,61988,45344,60488,64274,38752,58840,63862,37664,58568,63794,55696,63076,52112,62180,46880,60872,64370,34992,57900,52312,62230,47280,60972,50392,61750,39344,50248,61714,39056,58916,56392,63250,35760,58092,35216,57956,48048,52424,62258,47504,61028,50632,61810,39824,59108,56776,63346,33880,57622,50732,40024,59158,56876,49772,36056,49700,35912,58130,48344,52772,48200,61202,34264,57718,33992,57650,40408,50788,40136,59186,56932,49892,36296,58226,52964,48584,61298,33324,49942,36396,53014,49462,34412,49426,34340,40556,50962,40484,33516,33380,36588,49970,36452,48876,53042,48740,49522,34532,51058,40676,57202,33046,34582,33590,33554,36662,36626,33142,33074,34678,34610,40822,40754,33650,36722,49010,41312,59480,64022,53680,62572,53392,62500,42848,59864,64118,41760,59592,64050,55216,62956,54160,62692,44832,60360,64242,37040,58412,55384,62998,51416,62006,45488,51272,61970,45200,60452,37808,58604,37264,58468,55496,63026,52184,62198,47024,51656,62066,45968,60644,38800,58852,56264,63218,34904,57878,52268,47192,60950,50284,39128,50212,38984,58898,56356,35288,57974,35016,57906,47576,52324,47304,60978,50668,39896,50404,39368,58994,56548,35784,58098,52708,48072,61170,33836,50710,39980,49718,35948,49682,35876,48236,52754,34028,33892,40172,50738,40036,56882,49910,36332,49778,36068,48620,52850,48356,34276,50930,40420,57074,33302,36374,34358,34322,40502,33398,33330,36470,36402,48758,34550,34418,40694,40562,33522,36594,48882,41136,59436,53464,62518,53320,62482,41904,59628,41360,59492,54232,62710,53704,62578,44976,60396,42896,59876,55240,62962,36952,58390,55340,51308,45272,51236,45128,60434,37336,58486,37064,58418,55396,51692,46040,51428,45512,60530,38872,58870,37832,58610,55780,52196,47048,60914,34860,52246,50230,39020,50194,38948,35052,34916,47340,52274,47204,50422,39404,50290,39140,56434,35820,35300,48108,52466,47588,50674,39908,56818,33814,35894,35858,33910,33842,40054,39986,36086,35954,48374,48242,34294,34034,40438,40178,36338,48626,41048,59414,53356,53284,41432,59510,41160,59442,53740,53476,42968,59894,41928,59634,55276,54244,36908,51254,45164,51218,37100,36964,55346,51446,45548,51314,45284,37868,37348,55538,52214,47084,51698,46052,34838,38966,34934,34866,47222,39158,39026,35318,35058,47606,47346,39926,39410,6e4,64152,54336,62736,64836,60784,64348,38080,58672,63820,55904,63128,64934,51744,62088,46144,60688,64324,39648,59064,63918,56688,63324,35424,58008,52528,62284,47712,61080,64422,50448,61764,39456,59016,63906,56592,63300,36208,58204,52920,62382,48496,61276,34096,57676,50840,61862,40240,59212,56984,63398,49800,36112,58180,52872,62370,48400,61252,34488,57774,51036,40632,59310,57180,33432,49996,36504,58278,53068,48792,61350,49476,34440,57762,51012,40584,59298,57156,33628,50094,36700,53166,48988,33100,49574,34636,51110,40780,57254,33604,50082,36676,53154,48964,53984,62648,64814,44480,60272,64220,42176,59696,64076,54880,62872,64870,53792,62600,64802,44096,60176,64196,51568,62044,45792,60600,64302,38624,58808,63854,37472,58520,63782,55600,63052,52016,62156,46688,51472,62020,45600,60552,64290,38432,58760,63842,56080,63172,50360,61742,39280,58972,56504,63278,35696,58076,35120,57932,47984,52376,62246,47408,61004,50584,61798,39728,50312,61730,39184,58948,56456,63266,35600,58052,52616,62306,47888,61124,49756,36024,58158,52828,48312,61230,34232,57710,33944,57638,40376,50764,40088,59174,56908,49868,36248,49732,35976,58146,48536,52804,48264,61218,34184,57698,50884,40328,59234,57028,49454,34396,50990,40540,57134,33500,33356,36572,49958,36428,48860,53030,48716,49510,34508,49442,34372,40652,50978,40516,57122,33476,50018,36548,53090,48836,33582,36654,33134,33062,34670,34598,40814,40742,33638,33570,36710,36642,48998,33122,34658,40802,53616,62556,42720,59832,64110,41568,59544,64038,55152,62940,54064,62668,53520,62532,44640,60312,64230,42528,59784,64098,55056,62916,51384,61998,45424,60508,37744,58588,37168,58444,55448,63014,52152,62190,46960,51608,62054,45872,51336,61986,45328,60484,38704,58828,37648,58564,55688,63074,52104,62178,46864,60868,50268,39096,58926,56412,35256,57966,34968,57894,47544,52300,47256,60966,50652,39864,50380,39320,50244,39048,58914,56388,35736,58086,35208,57954,48024,52420,47496,61026,50628,39816,59106,56772,49710,35932,52782,48220,34012,33868,40156,50726,40012,56870,49902,36316,49766,36044,49698,48604,35908,48332,52770,48196,34252,33988,40396,50786,40132,56930,49890,36292,52962,48580,34350,40494,33390,33318,36462,36390,48750,34542,34406,40686,34338,40550,40482,33510,33378,36582,36450,48870,48738,34530,40674,53432,62510,41840,59612,41264,59468,54200,62702,53656,62566,53384,62498,44912,60380,42800,59852,41744,59588,55192,62950,54152,62690,44816,60356,51292,45240,60462,37304,58478,37016,58406,55372,51676,46008,51404,45464,51268,45192,60450,38840,58862,37784,58598,37256,58466,55492,52172,47e3,51652,45960,60642,38792,58850,56260,50222,39004,56366,35036,34892,47324,52262,47180,50414,39388,50278,39116,50210,38980,56354,35804,35276,48092,35012,47564,52322,47300,50662,39884,50402,39364,56546,35780,52706,48068,35886,33902,33830,40046,39974,36078,35942,48366,35874,48230,34286,34022,40430,33890,40166,40034,36326,36066,48614,48354,34274,40418,53340,41400,59502,41112,59430,53724,53452,53316,42936,59886,41880,59622,41352,59490,55260,54220,53700,44952,60390,42888,59874,51246,45148,37084,36940,55334,51438,45532,51302,45260,51234,45124,37852,37324,37060,55394,52206,47068,51686,46028,51426,45508,38860,37828,55778,38958,34926,34854,47214,39150,39014,38946,35310,35046,47598,34914,47334,47202,39918,39398,39138,35814,35298,48102,47586,53294,41180,41036,53486,53350,53282,41948,41420,41156,54254,53734,53474,45020,42956,41924,36974,36902,45294,45158,37358,37094,36962,46062,45542,45282,38894,37862,37346,54496,62776,64846,43200,59952,64140,54304,62728,64834,56048,63164,51824,62108,46304,60728,64334,37984,58648,63814,55856,63116,51728,62084,46112,60680,64322,52600,62302,47856,61116,50488,61774,39536,59036,56632,63310,35376,57996,52504,62278,47664,61068,50440,61762,39440,59012,56584,63298,50876,40312,59230,57020,49820,36152,58190,52892,48440,61262,34072,57670,50828,40216,59206,56972,49796,36104,58178,52868,48392,61250,50014,36540,53086,48828,49486,34460,51022,40604,57166,33420,49990,36492,53062,48780,49474,34436,51010,40580,57154,34654,40798,33614,36686,48974,33094,34630,40774,33602,36674,48962,59768,64094,55024,62908,53872,62620,44256,60216,64206,42080,59672,64070,54832,62860,53776,62596,44064,60168,64194,37616,58556,55672,63070,52088,62174,46832,51512,62030,45680,60572,38512,58780,37424,58508,55576,63046,51992,62150,46640,51464,62018,45584,60548,38416,58756,56072,63170,35192,57950,52412,47480,61022,50620,39800,50332,39224,58958,56476,35640,58062,35096,57926,47928,52364,47384,60998,50572,39704,50308,39176,58946,56452,35592,58050,52612,47880,61122,33980,50782,40124,56926,49886,36284,49742,35996,48572,52814,48284,34204,33932,40348,50758,40076,56902,49862,36236,49730,35972,48524,52802,48260,34180,50882,40324,57026,33374,36446,48734,34526,34382,40670,40526,33486,33350,36558,36422,48846,48710,34502,34370,40646,40514,33474,36546,48834,41712,59580,54136,62686,53560,62542,44784,60348,42608,59804,41520,59532,55096,62926,54040,62662,53512,62530,44592,60300,42512,59780,55048,62914,37240,58462,55484,51644,45944,51356,45368,60494,38776,58846,37688,58574,37144,58438,55436,52124,46904,51596,45848,51332,45320,60482,38680,58822,37640,58562,55684,52100,46856,60866,35004,52318,47292,50398,39356,50254,39068,56398,35772,35228,48060,34956,47516,52294,47244,50638,39836,50374,39308,50242,39044,56386,35724,35204,48012,52418,47492,50626,39812,56770,33886,40030,36062,35918,48350,48206,34270,33998,40414,33862,40142,40006,36302,36038,48590,35906,48326,48194,34246,33986,40390,40130,36290,48578,41336,59486,53692,53404,42872,59870,41784,59598,41240,59462,55228,54172,53644,53380,44856,60366,42776,59846,41736,59586,55180,54148,37052,55390,51422,45500,51278,45212,37820,37276,37004,55366,52190,47036,51662,45980,51398,45452,51266,45188,38812,37772,37252,55490,52166,46988,51650,45956,34910,47198,39134,38990,35294,35022,47582,34886,47310,47174,39902,39374,39110,38978,35790,35270,48078,35010,47558,47298,39878,39362,41148,53470,53326,41916,41372,41100,54238,53710,53446,53314,44988,42908,41868,41348,55246,54214,53698,36958,45278,45134,37342,37070,36934,46046,45518,45254,45122,38878,37838,37318,37058,47054,46022,45506,41054,41438,41166,41030,42974,41934,41414,41154,43488,60024,64158,54384,62748,43104,59928,64134,54288,62724,60796,38128,58684,55928,63134,51768,62094,46192,60700,37936,58636,55832,63110,51720,62082,46096,60676,39672,59070,56700,35448,58014,52540,47736,61086,50460,39480,59022,56604,35352,57990,52492,47640,61062,50436,39432,59010,56580,36220,52926,48508,34108,50846,40252,56990,49806,36124,52878,48412,34060,50822,40204,56966,49794,36100,52866,48388,34494,40638,33438,36510,48798,34446,40590,33414,36486,48774,34434,40578,54008,62654,44528,60284,42224,59708,54904,62878,53816,62606,44144,60188,42032,59660,54808,62854,53768,62594,44048,60164,51580,45816,60606,38648,58814,37496,58526,55612,52028,46712,51484,45624,60558,38456,58766,37400,58502,55564,51980,46616,51460,45576,60546,38408,58754,56068,50366,39292,56510,35708,35132,47996,52382,47420,50590,39740,50318,39196,56462,35612,35084,47900,52358,47372,50566,39692,50306,39172,56450,35588,52610,47876,36030,48318,34238,33950,40382,40094,36254,35982,48542,48270,34190,33926,40334,40070,36230,35970,48518,48258,34178,40322,53628,42744,59838,41592,59550,55164,54076,53532,44664,60318,42552,59790,41496,59526,55068,54028,53508,44568,60294,42504,59778,51390,45436,37756,37180,55454,52158,46972,51614,45884,51342,45340,38716,37660,37132,55430,52110,46876,51590,45836,51330,45316,38668,37636,55682,39102,35262,34974,47550,47262,39870,39326,39054,35742,35214,48030,34950,47502,47238,39822,39302,39042,35718,35202,48006,47490,53438,41852,41276,54206,53662,53390,44924,42812,41756,41228,55198,54158,53638,53378,44828,42764,41732,45246,37310,37022,46014,45470,45198,38846,37790,37262,36998,47006,45966,45446,45186,38798,37766,37250,41406,41118,42942,41886,41358,41094,44958,42894,41862,41346,54520,62782,43248,59964,54328,62734,43056,59916,54280,62722,56060,51836,46328,60734,38008,58654,55868,51740,46136,60686,37912,58630,55820,51716,46088,60674,52606,47868,50494,39548,56638,35388,52510,47676,50446,39452,56590,35340,52486,47628,50434,39428,56578,40318,36158,48446,34078,40222,36110,48398,34054,40198,36098,48386,59774,55036,53884,44280,60222,42104,59678,54844,53788,44088,60174,42008,59654,54796,53764,37628,55678,52094,46844,51518,45692,38524,37436,55582,51998,46652,51470,45596,38428,37388,55558,51974,46604,51458,45572,35198,47486,39806,39230,35646,35102,47934,47390,39710,39182,35598,35078,47886,47366,39686,39170,41724,54142,53566,44796],c=[48732,49518,34524,49446,34380,40668,50982,40524,57126,33484,33348,36556,49954,36420,48844,53026,48708,49506,34500,51042,40644,57186,33070,34606,40750,33646,33574,36718,36646,49006,33126,33058,34662,34594,40806,40738,33634,36706,48994,41696,59576,64046,54128,62684,53552,62540,44768,60344,64238,42592,59800,64102,41504,59528,64034,55088,62924,54032,62660,44576,60296,64226,37232,58460,55480,63022,51640,62062,45936,51352,61990,45360,60492,38768,58844,37680,58572,37136,58436,55432,63010,52120,62182,46896,51592,62050,45840,60612,38672,58820,56200,63202,35e3,57902,52316,47288,60974,50396,39352,50252,39064,58918,56396,35768,58094,35224,57958,48056,34952,57890,47512,52292,47240,60962,50636,39832,50372,39304,58978,56516,35720,58082,52676,48008,61154,33884,50734,40028,56878,49774,36060,49702,35916,48348,52774,48204,34268,33996,40412,33860,40140,50722,40004,56866,49894,36300,49762,36036,48588,52834,48324,34244,50914,40388,57058,33326,36398,34414,34342,40558,40486,33518,33382,36590,33314,36454,48878,36386,48742,34534,34402,40678,40546,33506,36578,48866,41328,59484,53688,62574,53400,62502,42864,59868,41776,59596,41232,59460,55224,62958,54168,62694,53640,62562,44848,60364,42768,59844,55176,62946,37048,58414,55388,51420,45496,51276,45208,60454,37816,58606,37272,58470,37e3,58402,55364,52188,47032,51660,45976,51396,45448,60514,38808,58854,37768,58594,55748,52164,46984,60898,34908,52270,47196,50286,39132,50214,38988,56358,35292,35020,47580,34884,47308,52258,47172,50670,39900,50406,39372,50274,39108,56418,35788,35268,48076,52450,47556,50658,39876,56802,33838,39982,35950,35878,48238,34030,33894,40174,33826,40038,39970,36334,36070,48622,35938,48358,48226,34278,34018,40422,40162,36322,48610,41144,59438,53468,53324,41912,59630,41368,59494,41096,59426,54236,53708,53444,44984,60398,42904,59878,41864,59618,55244,54212,36956,55342,51310,45276,51238,45132,37340,37068,36932,55330,51694,46044,51430,45516,51298,45252,38876,37836,37316,55522,52198,47052,51682,46020,34862,39022,38950,35054,34918,47342,34850,47206,39406,39142,39010,35822,35302,48110,35042,47590,47330,39910,39394,41052,53358,53286,41436,41164,41028,53742,53478,53346,42972,41932,41412,55278,54246,53730,36910,45166,37102,36966,36898,45550,45286,45154,37870,37350,37090,47086,46054,45538,43456,60016,64156,54368,62744,64838,43072,59920,64132,60792,64350,38112,58680,63822,55920,63132,51760,62092,46176,60696,64326,37920,58632,63810,55824,63108,39664,59068,56696,63326,35440,58012,52536,62286,47728,61084,50456,61766,39472,59020,56600,63302,35344,57988,52488,62274,47632,61060,36216,58206,52924,48504,61278,34104,57678,50844,40248,59214,56988,49804,36120,58182,52876,48408,61254,34056,57666,50820,40200,59202,56964,34492,51038,40636,57182,33436,49998,36508,53070,48796,49478,34444,51014,40588,57158,33412,49986,36484,53058,48772,33630,36702,48990,33102,34638,40782,33606,36678,48966,33090,34626,40770,54e3,62652,44512,60280,64222,42208,59704,64078,54896,62876,53808,62604,44128,60184,64198,42016,59656,64066,54800,62852,51576,62046,45808,60604,38640,58812,37488,58524,55608,63054,52024,62158,46704,51480,62022,45616,60556,38448,58764,37392,58500,55560,63042,51976,62146,46608,60804,50364,39288,58974,56508,35704,58078,35128,57934,47992,52380,47416,61006,50588,39736,50316,39192,58950,56460,35608,58054,35080,57922,47896,52356,47368,60994,50564,39688,59074,56708,49758,36028,52830,48316,34236,33948,40380,50766,40092,56910,49870,36252,49734,35980,48540,52806,48268,34188,33924,40332,50754,40068,56898,49858,36228,52930,48516,34398,40542,33502,33358,36574,36430,48862,48718,34510,34374,40654,40518,33478,33346,36550,36418,48838,48706,34498,40642,53624,62558,42736,59836,41584,59548,55160,62942,54072,62670,53528,62534,44656,60316,42544,59788,41488,59524,55064,62918,54024,62658,44560,60292,51388,45432,60510,37752,58590,37176,58446,55452,52156,46968,51612,45880,51340,45336,60486,38712,58830,37656,58566,37128,58434,55428,52108,46872,51588,45832,60610,38664,58818,56196,50270,39100,56414,35260,34972,47548,52302,47260,50654,39868,50382,39324,50246,39052,56390,35740,35212,48028,34948,47500,52290,47236,50630,39820,50370,39300,56514,35716,52674,48004,35934,48222,34014,33870,40158,40014,36318,36046,48606,35910,48334,48198,34254,33990,40398,33858,40134,40002,36294,36034,48582,48322,34242,40386,53436,41848,59614,41272,59470,54204,53660,53388,44920,60382,42808,59854,41752,59590,41224,59458,55196,54156,53636,44824,60358,42760,59842,51294,45244,37308,37020,55374,51678,46012,51406,45468,51270,45196,38844,37788,37260,36996,55362,52174,47004,51654,45964,51394,45444,38796,37764,55746,39006,35038,34894,47326,47182,39390,39118,38982,35806,35278,48094,35014,47566,34882,47302,47170,39886,39366,39106,35782,35266,48070,47554,53342,41404,41116,53726,53454,53318,42940,41884,41356,41092,55262,54222,53702,53442,44956,42892,41860,45150,37086,36942,45534,45262,45126,37854,37326,37062,36930,47070,46030,45510,45250,38862,37830,37314,41182,41038,41950,41422,41158,41026,45022,42958,41926,41410,54512,62780,43232,59960,64142,54320,62732,43040,59912,64130,56056,63166,51832,62110,46320,60732,38e3,58652,55864,63118,51736,62086,46128,60684,37904,58628,55816,63106,52604,47864,61118,50492,39544,59038,56636,35384,57998,52508,47672,61070,50444,39448,59014,56588,35336,57986,52484,47624,61058,50878,40316,57022,49822,36156,52894,48444,34076,50830,40220,56974,49798,36108,52870,48396,34052,50818,40196,56962,36542,48830,34462,40606,33422,36494,48782,34438,40582,33410,36482,48770,59772,55032,62910,53880,62622,44272,60220,42096,59676,54840,62862,53784,62598,44080,60172,42e3,59652,54792,62850,37624,58558,55676,52092,46840,51516,45688,60574,38520,58782,37432,58510,55580,51996,46648,51468,45592,60550,38424,58758,37384,58498,55556,51972,46600,60802,35196,52414,47484,50622,39804,50334,39228,56478,35644,35100,47932,52366,47388,50574,39708,50310,39180,56454,35596,35076,47884,52354,47364,50562,39684,56706,33982,40126,36286,35998,48574,48286,34206,33934,40350,40078,36238,35974,48526,48262,34182,33922,40326,40066,36226,48514,41720,59582,54140,53564,44792,60350,42616,59806,41528,59534,55100,54044,53516,44600,60302,42520,59782,41480,59522,55052,54020,37244,55486,51646,45948,51358,45372,38780,37692,37148,55438,52126,46908,51598,45852,51334,45324,38684,37644,37124,55426,52102,46860,51586,45828,35006,47294,39358,39070,35774,35230,48062,34958,47518,47246,39838,39310,39046,35726,35206,48014,34946,47494,47234,39814,39298,41340,53694,53406,42876,41788,41244,55230,54174,53646,53382,44860,42780,41740,41220,55182,54150,53634,37054,45502,45214,37822,37278,37006,47038,45982,45454,45190,38814,37774,37254,36994,46990,45958,45442,41150,41918,41374,41102,44990,42910,41870,41350,41090,43504,60028,54392,62750,43120,59932,54296,62726,43024,59908,60798,38136,58686,55932,51772,46200,60702,37944,58638,55836,51724,46104,60678,37896,58626,55812,39676,56702,35452,52542,47740,50462,39484,56606,35356,52494,47644,50438,39436,56582,35332,52482,47620,36222,48510,34110,40254,36126,48414,34062,40206,36102,48390,34050,40194,54012,44536,60286,42232,59710,54908,53820,44152,60190,42040,59662,54812,53772,44056,60166,41992,59650,51582,45820,38652,37500,55614,52030,46716,51486,45628,38460,37404,55566,51982,46620,51462,45580,38412,37380,55554,39294,35710,35134,47998,47422,58528,63784,55616,63056,64916,52032,62160,60832,64360,35136,57936,52384,62248,47424,61008,64404,50592,61800,39744,59088,63924,56736,63336,64986,33952,57640,50768,61844,40096,59176,63946,56912,63380,49872,36256,58216,52944,62388,48544,61288,64474,33360,49960,36432,58260,53032,62410,48720,61332,49512,34512,57780,51048,61914,40656,59316,57192,63450,33064,49556,34600,57802,51092,40744,59338,33640,50100,36712,58330,53172,49e3,61402,59552,64040,54080,62672,64820,60320,64232,37184,58448,63764,55456,63016,64906,51616,62056,45888,60624,64308,38720,58832,63860,56224,63208,64954,34976,57896,52304,62228,47264,60968,64394,50384,61748,39328,58984,63898,56528,63284,35744,58088,52688,62324,48032,61160,64442,33872,57620,50728,61834,40016,59156,56872,63370,49768,36048,58164,52840,62362,48336,61236,34256,57716,50920,61882,40400,59252,57064,63418,33320,49940,36392,58250,53012,49460,34408,57754,50996,40552,59290,57140,33512,50036,36584,58298,53108,48872,61370,33044,49546,34580,51082,33588,50074,36660,53146,33140,49594,34676,51130,40820,57274,41280,59472,64020,53664,62568,64794,42816,59856,64116,55200,62952,64890,37024,58408,63754,55376,62996,51408,62004,45472,60520,64282,37792,58600,63802,55760,63092,52176,62196,47008,60904,64378,34896,57876,52264,62218,47184,60948,50280,61722,39120,58932,56424,63258,35280,57972,52456,62266,47568,61044,50664,61818,39888,59124,56808,63354,33832,57610,50708,39976,59146,49716,35944,58138,52788,48232,61210,34024,57658,50804,40168,59194,56948,49908,36328,58234,52980,48616,61306,33300,49930,36372,49434,34356,50970,40500,33396,49978,36468,53050,48756,49530,34548,51066,40692,57210,33034,34570,33562,36634,33082,34618,40762,33658,36730,49018,41120,59432,64010,53456,62516,41888,59624,64058,54224,62708,44960,60392,64250,36944,58388,55336,62986,51304,61978,45264,60468,37328,58484,55528,63034,51688,62074,46032,60660,38864,58868,56296,63226,34856,57866,52244,50228,39016,58906,56372,35048,57914,52340,47336,60986,50420,39400,59002,56564,35816,58106,52724,48104,61178,33812,50698,49690,35892,52762,33908,50746,40052,56890,49786,36084,52858,48372,34292,50938,40436,57082,33290,34330,33338,36410,34426,40570,33530,36602,48890,41040,59412,53352,62490,41424,59508,53736,62586,42960,59892,55272,62970,36904,58378,51252,45160,60442,37096,58426,55412,51444,45544,60538,37864,58618,55796,52212,47080,60922,34836,50202,38964,34932,52282,47220,50298,39156,56442,35316,52474,47604,50682,39924,56826,33802,35866,33850,39994,35962,48250,34042,40186,36346,48634,59968,64144,60768,64344,58656,63816,55872,63120,64932,39616,59056,63916,56672,63320,64982,35392,58e3,52512,62280,47680,61072,64420,36192,58200,52912,62380,48480,61272,64470,34080,57672,50832,61860,40224,59208,63954,56976,63396,34480,57772,51032,61910,40624,59308,57176,63446,33424,49992,36496,58276,53064,62418,48784,61348,33624,50092,36696,58326,53164,48984,61398,33096,49572,34632,57810,51108,40776,59346,57252,53952,62640,64812,60256,64216,59680,64072,54848,62864,64868,51552,62040,45760,60592,64300,38592,58800,63852,37440,58512,63780,55584,63048,64914,52e3,62152,46656,60816,64356,50352,61740,39264,58968,63894,56496,63276,35680,58072,35104,57928,47968,52368,62244,47392,61e3,64402,50576,61796,39712,59080,63922,56720,63332,49752,36016,58156,52824,62358,48304,61228,34224,57708,33936,57636,40368,50760,61842,40080,59172,56904,63378,49864,36240,58212,52936,62386,48528,61284,49452,34392,57750,50988,40536,59286,57132,33496,33352,36568,49956,36424,58258,48856,53028,48712,61330,49508,34504,57778,51044,40648,59314,57188,33580,50070,36652,53142,33132,33060,34668,49554,34596,40812,51090,40740,33636,50098,36708,53170,48996,53600,62552,64790,42688,59824,64108,41536,59536,64036,55136,62936,64886,54048,62664,64818,44608,60304,64228,51376,61996,45408,60504,64278,37728,58584,63798,37152,58440,63762,55440,63012,52144,62188,46944,51600,62052,45856,60616,64306,38688,58824,63858,56208,63204,50264,61718,39088,58924,56408,63254,35248,57964,34960,57892,47536,52296,62226,47248,60964,50648,61814,39856,50376,61746,39312,58980,56520,63282,35728,58084,52680,62322,48016,61156,49708,35928,58134,52780,48216,61206,34008,57654,33864,57618,40152,50724,40008,59154,56868,49900,36312,49764,36040,58162,48600,52836,48328,61234,34248,57714,50916,40392,59250,57060,49430,34348,50966,40492,33388,33316,36460,49938,36388,48748,53010,49526,34540,49458,34404,40684,50994,40548,57138,33508,50034,36580,53106,48868,33558,36630,33078,33042,34614,34578,40758,33654,33586,36726,36658,49014,33138,34674,40818,53424,62508,41824,59608,64054,41248,59464,64018,54192,62700,53648,62564,44896,60376,64246,42784,59848,64114,55184,62948,51288,61974,45232,60460,37296,58476,37008,58404,55368,62994,51672,62070,46e3,51400,62002,45456,60516,38832,58860,37776,58596,55752,63090,52168,62194,46992,60900,50220,39e3,58902,56364,35032,57910,34888,57874,47320,52260,47176,60946,50412,39384,50276,39112,58930,56420,35800,58102,35272,57970,48088,52452,47560,61042,50660,39880,59122,56804,49686,35884,52758,33900,33828,40044,50706,39972,49782,36076,49714,35940,48364,52786,48228,34284,34020,40428,50802,40164,56946,49906,36324,52978,48612,34326,33334,33298,36406,36370,34422,34354,40566,40498,33526,33394,36598,36466,48886,48754,34546,40690,53336,62486,41392,59500,41104,59428,53720,62582,53448,62514,42928,59884,41872,59620,55256,62966,54216,62706,44944,60388,51244,45144,60438,37080,58422,36936,58386,55332,51436,45528,51300,45256,60466,37848,58614,37320,58482,55524,52204,47064,51684,46024,60658,38856,58866,56292,50198,38956,34924,34852,47212,52242,50294,39148,50226,39012,56370,35308,35044,47596,52338,47332,50678,39916,50418,39396,56562,35812,52722,48100,35862,33846,33810,39990,35958,35890,48246,34038,33906,40182,40050,36342,36082,48630,48370,34290,40434,53292,41176,59446,41032,59410,53484,53348,41944,59638,41416,59506,54252,53732,45016,60406,42952,59890,51222,36972,36900,51318,45292,51250,45156,37356,37092,55410,51702,46060,51442,45540,38892,37860,55794,34870,34834,39030,38962,35062,34930,47350,47218,39414,39154,35830,35314,48118,47602,54464,62768,64844,59936,64136,56032,63160,64942,51808,62104,46272,60720,64332,37952,58640,63812,55840,63112,64930,52592,62300,47840,61112,64430,50480,61772,39520,59032,63910,56624,63308,35360,57992,52496,62276,47648,61064,64418,50872,61870,40304,59228,57016,63406,49816,36144,58188,52888,62374,48432,61260,34064,57668,50824,61858,40208,59204,56968,63394,50012,36536,58286,53084,48824,61358,49484,34456,57766,51020,40600,59302,57164,33416,49988,36488,58274,53060,48776,61346,49582,34652,51118,40796,57262,33612,50086,36684,53158,48972,33092,49570,34628,51106,40772,57250,59760,64092,55008,62904,64878,53856,62616,64806,44224,60208,64204,42048,59664,64068,54816,62856,64866,37600,58552,63790,55664,63068,52080,62172,46816,51504,62028,45664,60568,64294,38496,58776,63846,37408,58504,63778,55568,63044,51984,62148,46624,60808,64354,35184,57948,52408,62254,47472,61020,50616,61806,39792,50328,61734,39216,58956,56472,63270,35632,58060,35088,57924,47920,52360,62242,47376,60996,50568,61794,39696,59076,56712,63330,33976,57646,50780,40120,59182,56924,49884,36280,49740,35992,58150,48568,52812,48280,61222,34200,57702,33928,57634,40344,50756,40072,59170,56900,49860,36232,58210,52932,48520,61282,33372,49966,36444,53038],s=[[[20,16,38]],[[1,9,31],[9,31,26],[31,26,2],[26,2,12]],[[2,12,17],[12,17,23],[17,23,37],[23,37,18]],[[37,18,22],[18,22,6],[22,6,27],[6,27,44]],[[27,44,15],[44,15,43],[15,43,39],[43,39,11]],[[39,11,13],[11,13,5],[13,5,41],[5,41,33]],[[41,33,36],[33,36,8],[36,8,4],[8,4,32]],[[4,32,3],[32,3,19],[3,19,40],[19,40,25]],[[40,25,29],[25,29,10],[29,10,24],[10,24,30]],[[20,16,38],[0,0,0],[0,0,0],[0,0,0]]],f=[[1,0,0,1],[0,1,0,1],[1,1,0,0],[0,0,1,1],[1,0,1,0],[0,1,1,0],[1,1,1,1],[0,0,0,0]],l=["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","-","."," ","$","/","+","%","\u2000","\u2001",i.default.FNC1,i.default.FNC2,i.default.FNC3,"\u2005"],e.default={defaultConfig:u={showLabel:!0,grouping:!(h=["\u2000 ","\u2000A","\u2000B","\u2000C","\u2000D","\u2000E","\u2000F","\u2000G","\u2000H","\u2000I","\u2000J","\u2000K","\u2000L","\u2000M","\u2000N","\u2000O","\u2000P","\u2000Q","\u2000R","\u2000S","\u2000T","\u2000U","\u2000V","\u2000W","\u2000X","\u2000Y","\u2000Z","\u20001","\u20002","\u20003","\u20004","\u20005"," ","\u20006","\u20007","\u20008","$","%","\u20009","\u20000","\u2000-","\u2000.","\u2000$","+","\u2000/","-",".","/","0","1","2","3","4","5","6","7","8","9","\u2000+","\u20011","\u20012","\u20013","\u20014","\u20015","\u20016","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","\u20017","\u20018","\u20019","\u20010","\u2001-","\u2001.","\u2001A","\u2001B","\u2001C","\u2001D","\u2001E","\u2001F","\u2001G","\u2001H","\u2001I","\u2001J","\u2001K","\u2001L","\u2001M","\u2001N","\u2001O","\u2001P","\u2001Q","\u2001R","\u2001S","\u2001T","\u2001U","\u2001V","\u2001W","\u2001X","\u2001Y","\u2001Z","\u2001$","\u2001/","\u2001+","\u2001%","\u2001 "]),groupNo:0,quietZoneStart:10,quietZoneStop:1,labelPosition:"bottom",height:60,quietZone:{top:0,right:1,bottom:0,left:10}},isNumericOnly:y,getCharValue:p,CODE_NS:v=48,getWeight:g,getParityPattern:m,START_PATTERN:d="10",STOP_PATTERN:w="1111",getGroupInfo:C,getTextGroup:A}},function(t,e,n){"use strict";var r,i,i,o,u,a,c,s,f,c,l;function h(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function v(t){return t&&t.__esModule?t:{default:t}}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function w(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function b(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function y(t){var t,e,n,r,i,e,r,o,r;return d(this,y),n=(e=(t=w(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,t,s.default.defaultConfig))).config).text,r=e.checkDigit,e=(i=e.fullASCII)?s.default.getFullASCIIChar(n):n,r?(r=t.checksum(e),o=t.checksum(e+r),t.text=s.default.START_STOP_CHARACTERS+e+r+o+s.default.START_STOP_CHARACTERS):t.text=s.default.START_STOP_CHARACTERS+e+s.default.START_STOP_CHARACTERS,t.label=n,r=t.calculateData(),t.adjustDesiredSize(r),t.convertToShape(r),t}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&h(t.prototype,e),n&&h(t,n),t},i=n(4),i=v(i),u=v(o=n(2)),a=n(0),c=n(36),s=v(c),f=n(1),b(y,l=i.default),r(y,[{key:"validate",value:function t(){var e,n,r,i,e=this.config,n=e.text,r,i;if(!e.fullASCII&&!/^[0-9A-Z\-\.\ \$\/\+\%]+$/.test(n))throw new f.InvalidTextException(n)}},{key:"encode",value:function t(e){var n="";return(0,a.str2Array)(e).forEach(function(t,e){(0,a.isEven)(e)?n+=(0,a.strRepeat)("1",+t):n+=(0,a.strRepeat)("0",+t)}),n}},{key:"calculateData",value:function t(){var e,n,r,e=this,n=this.text,r="";return(0,a.sliceString)(n,1,function(t){r+=e.encode(s.default.getCode93Code(t))}),r+=s.default.TERMINATION}},{key:"checksum",value:function t(e){var n,e,n=1,e=(0,a.str2Array)(e).reduceRight(function(t,e){var e=s.default.getCode93Value(e);return t+=(n=20<n?1:n)*e,n++,t},0);return s.default.getCharByValue(e%47)}}]),c=y,e.default=c,u.default.registerEncoder("Code93",c)},function(t,e,n){"use strict";var r,i,o,u,a,c,s,f;function l(t){var e=o.indexOf(t);if(-1===e)throw new r.InvalidCharException(t);return u[e]}function h(t){var e=o.indexOf(t);if(-1===e)throw new r.InvalidCharException(t);return e}function v(t){return o[t]}function d(e){var n="";return(0,i.sliceString)(e,1,function(t){var t=a[t.charCodeAt(0)];if(!t)throw new r.InvalidTextException(e);n+=t}),n}Object.defineProperty(e,"__esModule",{value:!0}),r=n(1),i=n(0),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","-","."," ","$","/","+","%","[","]","{","}","*"],e.default={getCode93Code:l,START_STOP_CHARACTERS:s="*",defaultConfig:c={height:60,showLabel:!0,checkDigit:!(a=["]U","[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","]A","]B","]C","]D","]E"," ","{A","{B","{C","{D","{E","{F","{G","{H","{I","{J","{K","{L","{M","{N","{O","0","1","2","3","4","5","6","7","8","9","{Z","]F","]G","]H","]I","]J","]V","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","]K","]L","]M","]N","]O","]W","}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","]P","]Q","]R","]S","]T"]),fullASCII:!(u=["131112","111213","111312","111411","121113","121212","121311","111114","131211","141111","211113","211212","211311","221112","221211","231111","112113","112212","112311","122112","132111","111123","111222","111321","121122","131121","212112","212211","211122","211221","221121","222111","112122","112221","122121","123111","121131","311112","311211","321111","112131","113121","211131","121221","312111","311121","122211","111141"]),quietZone:{top:0,right:10,bottom:0,left:10},labelPosition:"bottom"},TERMINATION:f="1",getCode93Value:h,getCharByValue:v,getFullASCIIChar:d}},function(t,e,n){"use strict";var r,i,i,o,u,a,l,a,h,a,v,d,c,a,s;function f(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function w(t){return t&&t.__esModule?t:{default:t}}function b(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function p(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function g(t){var t,e,n,r,i,o,u,a,c,s,f,e;switch(b(this,g),n=(e=(t=y(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,t,l.default.defaultConfig))).config).text,r=e.eccMode,i=e.ecc200SymbolSize,o=e.ecc200EncodingMode,u=e.structuredAppend,a=e.structureNumber,c=e.fileIdentifier,s=e.ecc000_140SymbolSize,a=+a,c=+c,f=void 0,r){case"ECC200":f=new h.default(n,{ecc200SymbolSize:i,ecc200EncodingMode:o,structuredAppend:u,structureNumber:a,fileIdentifier:c});break;case"ECC000":case"ECC050":case"ECC080":case"ECC100":case"ECC140":f=new v.default(n,{ecc000_140SymbolSize:s,structuredAppend:u,structureNumber:a,fileIdentifier:c,eccMode:r});break;default:throw new d.BadArgumentsException(r)}return e=f.getMatrix(),t.adjustDesiredSize(e),t.convertToShape(e),t}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&f(t.prototype,e),n&&f(t,n),t},i=n(7),i=w(i),u=w(o=n(2)),a=n(38),l=w(a),a=n(39),h=w(a),a=n(42),v=w(a),d=n(1),c=n(0),p(g,s=i.default),r(g,[{key:"validate",value:function t(){var e,n,r,i,e,o,e=this.config,n=e.text,r=e.eccMode,i=e.structureNumber,e=e.fileIdentifier,o=void 0;if(!(o="ECC200"===r?/^[\x00-\xFF\u2000\u2004\u2005]+$/:/^[\x00-\xFF]+$/).test(n))throw new d.InvalidTextException(n);if(!(0,c.isNumberLike)(i))throw new d.BadArgumentsException({structureNumber:i});if(!(0,c.isNumberLike)(e))throw new d.BadArgumentsException({fileIdentifier:e})}}]),a=g,e.default=a,u.default.registerEncoder("DataMatrix",a)},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.default={defaultConfig:{eccMode:"ECC200",ecc200SymbolSize:"squareAuto",ecc200EncodingMode:"auto",ecc000_140SymbolSize:"auto",structuredAppend:!1,structureNumber:0,fileIdentifier:0,quietZone:{top:2,left:2,right:2,bottom:2}}}},function(t,e,n){"use strict";var s,r,i,O,i,l,m,i,C,o,u;function a(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function c(t){return t&&t.__esModule?t:{default:t}}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function k(t){return t%256}function E(t){return Math.ceil(t-1e-5)}function h(t,e){f(this,h),this.text=t,this.m_symbol=(0,o.str2Array)(t).map(function(t){return t.charCodeAt(0)}),this.symbolSize=e.ecc200SymbolSize,this.encodingMode=e.ecc200EncodingMode,this.structuredAppend=e.structuredAppend,this.structureNumber=e.structureNumber,this.fileIdentifier=e.fileIdentifier,this.symbolInfo=O.default.getSymbolInfo("square144"),this.m_code=[]}Object.defineProperty(e,"__esModule",{value:!0}),s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=function(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t},i=n(8),O=c(i),i=n(40),l=c(i),m=n(1),i=n(41),C=c(i),o=n(0),r(h,[{key:"preEncode",value:function t(e,n){var r,i,r,r=this.m_symbol,i=this.m_code,r=r[0];return r!=O.default.CONSTANTS.Macro05Input&&r!=O.default.CONSTANTS.Macro06Input||(i[e++]=r==O.default.CONSTANTS.Macro05Input?O.default.CONSTANTS.Macro05:O.default.CONSTANTS.Macro06,n++),{c_pos:e,s_pos:n}}},{key:"checkValue",value:function t(e){var n,r,i,n=this.encodingMode,r=this.m_symbol;if("X12"==n||"EDIFACT"==n)for(i=e;i<r.length;++i)if(O.default.getTripletCharValue(n,r[i])==O.default.CONSTANTS.InvalidTripletValue)return!1;return!0}},{key:"getEncodingLength",value:function t(e,n,r,i){var o,u,o=this.m_symbol;if(n<0)return-1;switch(u=0,e){case"ASCII":u=n;break;case"C40":case"Text":u=2*~~((n+2)/3)+2;break;case"X12":u=2*~~((n+2)/3)+2,(n%3==1||n%3==2&&O.default.isDigit(o[r+i-2])&&O.default.isDigit(o[r+i-1]))&&--u;break;case"EDIFACT":u=3*~~(++n/4)+n%4+1;break;case"Base256":u=n+1+(n>O.default.CONSTANTS.Base256SmallBlockSize?2:1)}return u}},{key:"getMaxProperLength",value:function t(e,n){for(var r,i,o,u,a,r,c,r=this.m_symbol,i=this.encodingMode,o=e+1,u=r.length,a=~~((o+u)/2),r=0,c=0;o<u;)(c=this.getEncodingLength(i,this.getCodeWordLength(i,e,(a=~~((o+u)/2))-e),e,a-e))<0||n<c?u=a-1:o=a+1;return e<o&&(r=a<o?(c=this.getEncodingLength(i,this.getCodeWordLength(i,e,o-e),e,o-e))<0||n<c?a-e:o-e:(a=Math.min(a,o),(c=this.getEncodingLength(i,this.getCodeWordLength(i,e,a-e),e,a-e))<0||n<c?a-e-1:a-e)),Math.max(0,r)}},{key:"getCodeWordLength",value:function t(e,n,r){for(var i,o,u,a,i=this.m_symbol,o=0,u=n;u<n+r;++u){switch(a=i[u],e){case"ASCII":o+=a>O.default.ASCIIMax&&a!=O.default.CONSTANTS.FNC1Input?2:1,u<n+r-1&&O.default.isDigit(a)&&O.default.isDigit(i[u+1])&&++u;break;case"C40":case"Text":a==O.default.CONSTANTS.FNC1Input?a=O.default.CONSTANTS.TripletFNC1:a>O.default.ASCIIMax&&(o+=2,a-=128),o+=0==O.default.getTripletCharSetChannel(e,a)?1:2;break;case"X12":O.default.getX12Value(a)==O.default.CONSTANTS.InvalidTripletValue?o=-1:o+=1;break;case"EDIFACT":O.default.getEDIFACTValue(a)==O.default.CONSTANTS.InvalidTripletValue?o=-1:o+=1;break;case"Base256":o+=1}if(o<0)return o}return o}},{key:"getCodeLength",value:function t(e){return this.getEncodingLength(e.charSet,this.getCodeWordLength(e.charSet,e.start,e.length),e.start,e.length)}},{key:"getEncodingUnitsInfomative",value:function t(e,n,r){for(var i,o,u,a,c,s,f,l,h,v,d,w,b,y,i=this.m_symbol,o=[],a=r=0,c=e,s=!(u={charSet:"ASCII",start:e,length:0,codeWords:0,encodingLength:0}),f=i.length;c<f;){switch(s=!1,u.charSet){case"ASCII":for(l=0;c+l<i.length-1&&a+~~(l/2)<n&&O.default.isDigit(i[c+l])&&O.default.isDigit(i[c+l+1]);)l+=2;if(0<l){if(u.codeWords+=l>>1,c+=l,n<=a+~~(l/2))break;continue}break;case"C40":case"Text":case"X12":for(;i[c]>O.default.ASCIIMax&&(u.codeWords+=2),0<O.default.getTripletCharSetChannel(u.charSet,i[c])&&++u.codeWords,++u.codeWords,++c,u.codeWords%3!=0&&c<f;);break;case"EDIFACT":for(;++u.codeWords,++c,0!=(3&u.codeWords)&&c<f;);break;case"Base256":++u.codeWords,++c}for(h=0,d=v=n-(a+this.getEncodingLength(u.charSet,u.codeWords,u.start,c-u.start)),w=u.charSet;h=(b=this.lookAhead(u.charSet,c,d,h)).d_len,w=b.newCharset,0<--d&&this.getEncodingLength(w,this.getCodeWordLength(w,c,h),c,h)>v;);if(d<=0)break;if(u.charSet!=w&&(u.length=c-u.start,0<u.length&&(o.push(u),a+=this.getEncodingLength(u.charSet,u.codeWords,u.start,u.length)),u={charSet:w,start:c,length:0,codeWords:0,encodingLength:0},s=!0),y=n-1,"EDIFACT"==u.charSet&&--y,"Base256"==u.charSet&&++y,a+this.getEncodingLength(u.charSet,u.codeWords,u.start,u.length)>=y)break;s||"ASCII"!=u.charSet||(++u.codeWords,++c)}for(u.length=c-u.start,0<u.length&&(o.push(u),a+=this.getEncodingLength(u.charSet,u.codeWords,u.start,u.length)),u={charSet:"ASCII",start:c,length:0,codeWords:0,encodingLength:0};a<n&&c<i.length;){if(i[c]>O.default.ASCIIMax&&i[c]!=O.default.CONSTANTS.FNC1Input){if(!(a<n-1))break;++a}++a,++c}return c>u.start&&(u.length=c-u.start,o.push(u)),{s_taken:r=c-e,units:O.default.mergeUnits(o)}}},{key:"getEncodingUnits",value:function t(e,n){var r,i,o,u,a,c,o,i,r=this,i=this.encodingMode,o=this.m_symbol,u=void 0,a=0,c=0;return e<o.length&&("auto"!==i?("C40"!==i&&"Text"!=i&&"X12"!=i||n++,(o={charSet:i,start:e,length:c=this.getMaxProperLength(e,n),codeWords:0,encodingLength:0}).codeWords=this.getCodeWordLength(o.charSet,o.start,o.length),o.encodingLength=this.getEncodingLength(o.charSet,o.codeWords,o.start,o.length),"X12"==o.charSet&&o.encodingLength==n&&o.codeWords%3==2&&(--c,--o.length,--o.codeWords,--o.encodingLength),u=[o]):(i=this.getEncodingUnitsInfomative(e,n,c),u=i.units,c=i.s_taken),u.forEach(function(t,e){a+=r.getCodeLength(t),e===u.length-1&&("C40"===t.charSet||"Text"===t.charSet||"X12"===t.charSet&&1==(1&t.codeWords))&&a--})),{c_length:a,s_taken:c,units:u}}},{key:"encodeStructureHeader",value:function t(e,n,r){var i,o,o,i=this.m_code,o=this.structureNumber;return i[e++]=O.default.CONSTANTS.StructuredAppand,i[e++]=k(o<<4|16-n+1),o=this.generateFileIdentifier(n,r),i[e++]=k(o>>8),i[e++]=o%256,e}},{key:"generateFileIdentifier",value:function t(e,n){var r,i,o,u,r=this.m_symbol,i=this.fileIdentifier,o,u;return n%O.default.CONSTANTS.FileIdentifierMax+1<<8|(0==i?r.length%O.default.CONSTANTS.FileIdentifierMax+1:i)}},{key:"encode",value:function t(e,n){switch(e.charSet){case"ASCII":return this.encodeASCII(e.start,e.length,n);case"C40":return this.encodeC40(e.start,e.length,n);case"Text":return this.encodeText(e.start,e.length,n);case"X12":return this.encodeX12(e.start,e.length,n);case"EDIFACT":return this.encodeEDIFACT(e.start,e.length,n);case"Base256":return this.encodeBase256(e.start,e.length,n)}}},{key:"encodeASCII",value:function t(e,n,r){for(var i,o,u,a,c,c,i=this.m_code,o=this.m_symbol,u=e,a=e+n;u<a;u++)"FNC1"===(c=O.default.getCharType(o[u]))?(i.push(O.default.CONSTANTS.ASCIIFNC1),r++):"ExtendedASCII"===c?(i.push(O.default.CONSTANTS.ASCIIUpperShift),i.push(o[u]-O.default.ASCIIMax),r+=2):u+1<a&&"Numeric"===c&&"Numeric"===O.default.getCharType(o[u+1])?(c=10*(o[u]-48)+(o[u+1]-48)+130,i.push(c),r++,u++):(i.push(o[u]+1),r++);return r}},{key:"encodeTriplet",value:function t(e,n,r,i){var o,u,a,c,s,f,l,h,v,d,w,b,w,o=this.m_code,u=this.m_symbol,a=this.symbolInfo,c=0,s=0,f=null,l=[],h=n;switch(e){case"C40":o[i++]=O.default.CONSTANTS.LatchToC40;break;case"Text":o[i++]=O.default.CONSTANTS.LatchToText;break;case"X12":o[i++]=O.default.CONSTANTS.LatchToX12}for(;h<n+r;)f=O.default.getTripletEncodeValues(e,u[h++]),l=l.concat(f);for(;i<=a.symbolDataCapacity-2&&3<=l.length;){for(s=c=0;s<3;++s)c=(c*=40)+(0<l.length?l.shift():0);++c,o[i++]=c>>8,o[i++]=255&c}if(v=!0,0<l.length){if(d=a.symbolDataCapacity-i,w=n+r-l.length,b=l.length,0==d||3<l.length||2<=l.length&&d<2||"X12"===e&&this.getEncodingLength("ASCII",this.getCodeWordLength("ASCII",w,b),w,b)>(1==d?1:d-1))throw new m.TextTooLargeException;if(v=!1,2<=d)if("X12"==e)o[i++]=O.default.CONSTANTS.TripletUnlatch,i=this.encodeASCII(h-l.length,l.length,i);else{for(v=!0,c=s=0;s<3;++s)c=(c*=40)+(0<l.length?l.shift():0);o[i++]=++c>>8,o[i++]=255&c}else w=u[h-1],i=("X12"===e||w>O.default.ASCIIMax&&(o[i-2]=O.default.CONSTANTS.TripletUnlatch,--i),this.encodeASCII(h-1,1,i))}return v&&i<a.symbolDataCapacity&&(o[i++]=O.default.CONSTANTS.TripletUnlatch),i}},{key:"encodeC40",value:function t(e,n,r){return this.encodeTriplet("C40",e,n,r)}},{key:"encodeText",value:function t(e,n,r){return this.encodeTriplet("Text",e,n,r)}},{key:"encodeX12",value:function t(e,n,r){return this.encodeTriplet("X12",e,n,r)}},{key:"encodeEDIFACT",value:function t(e,n,r){var i,o,u,a,c,s,f,l,h,i=this.m_code,o=this.m_symbol,u=this.symbolInfo,a=this.text;for(i[r++]=O.default.CONSTANTS.LatchToEDIFACT,s=c=0,f=e,l=!1;f<e+n&&2<u.symbolDataCapacity-r;){for(s=c=0;c<4;){if(++c,h=0,f<e+n){if((h=O.default.getEDIFACTValue(o[f++]))==O.default.CONSTANTS.InvalidTripletValue)throw new m.InvalidTextException(a)}else{if(f!=e+n){--c;break}h=O.default.CONSTANTS.EDIFACTUnlatch,l=!0,++f}s=s<<6|h}switch(c){case 1:i[r++]=k(s<<2);break;case 2:i[r++]=k(s>>4),i[r++]=k(s<<4);break;case 3:i[r++]=k(s>>10),i[r++]=k(s>>2),i[r++]=k(s<<6);break;case 4:i[r++]=k(s>>16),i[r++]=k(s>>8),i[r++]=s%256}}return f<e+n?r=this.encodeASCII(f,o.length-f,r):!l&&r<u.symbolDataCapacity-2&&(i[r++]=O.default.CONSTANTS.EDIFACTUnlatch<<2),r}},{key:"encodeBase256",value:function t(e,n,r){var i,o,u,i=this.m_code,o=this.m_symbol;for(i[r++]=O.default.CONSTANTS.LatchToBase256,n>O.default.CONSTANTS.Base256SmallBlockSize&&(i[r++]=O.default.getRandomizedValue(O.default.CONSTANTS.Base256SmallBlockSize+n/O.default.CONSTANTS.Base256SmallBlockSize,r,O.default.CONSTANTS.Base256RandomBase)),i[r++]=O.default.getRandomizedValue(n%(O.default.CONSTANTS.Base256SmallBlockSize+1),r,O.default.CONSTANTS.Base256RandomBase),u=e;u<e+n;++u)i[r++]=O.default.getRandomizedValue(o[u],r,O.default.CONSTANTS.Base256RandomBase);return r}},{key:"padRight",value:function t(e){for(var n,r,i,n=this.m_code,r=this.symbolInfo,i=e;i<r.symbolDataCapacity;i++)n[i]=i==e?O.default.CONSTANTS.ASCIIPad:O.default.getRandomizedValue(O.default.CONSTANTS.ASCIIPad,i+1,O.default.CONSTANTS.PadRandomBase)}},{key:"lookAhead",value:function t(e,d,w,b){var y,p,g,m,C,k,A,n,r,i,o,u,a,c,y={ASCII:0,C40:1,Text:2,X12:3,EDIFACT:4,Base256:5},p=["ASCII","C40","Text","X12","EDIFACT","Base256"],g=this.m_symbol;b=0,e=y[e],m=!1,C=d,k=[0,1,1,1,1,1.25],A=y.C40,(k=e!=y.ASCII?k.map(function(t){return++t}):k)[e]=0,n=function t(){var n,r,i,e,o,u,a,c,s,f,l,h,v;if(++b,n=g[d],r=n==O.default.CONSTANTS.FNC1Input,i=n>O.default.ASCIIMax,k.forEach(function(t,e){switch(e){case y.ASCII:i&&!r?k[e]=E(k[e])+2:O.default.isDigit(n)?k[e]+=.5:k[e]+=1;break;case y.C40:case y.Text:k[e]+=r?4/3:i?8/3:0==O.default.getTripletCharSetChannel(p[e],n)?2/3:4/3;break;case y.X12:i?k[e]+=13/3:O.default.getX12Value(n)!=O.default.CONSTANTS.InvalidTripletValue?k[e]+=2/3:k[e]+=10/3;break;case y.EDIFACT:i?k[e]+=4.25:O.default.getEDIFACTValue(n)!=O.default.CONSTANTS.InvalidTripletValue?k[e]+=.75:k[e]+=3.25;break;case y.Base256:k[e]+=1}}),e=[y.ASCII,y.Base256,y.EDIFACT,y.Text,y.X12,y.C40],3<b)for(o=0;o<e.length;++o){for(u=!0,c=k[a=e[o]]+1,s=0;s<k.length;++s){switch(a){case y.ASCII:k[s]<c&&(u=!1);break;case y.Base256:(s==y.ASCII&&k[s]<c||k[s]<=c)&&(u=!1);break;case y.EDIFACT:case y.Text:case y.X12:k[s]<=c&&(u=!1);break;case y.C40:if(s!=y.X12&&k[s]<=c)u=!1;else if(--c,k[s]<c)u=!1;else if(k[s]==c){for(f=C;f<=d;){if((l=O.default.getX12Value(g[f++]))<3)return{v:p[y.X12]};if(l==O.default.CONSTANTS.InvalidTripletValue)break}return{v:p[y.C40]}}}if(!u)break}if(u){A=a;break}}for(++d,v=h=0;v<k.length;++v)E(k[v])<E(k[h])&&(h=v);if(d<g.length&&E(k[h])>=w)return m=!0,"break"};t:for(;d<g.length&&d-C<=O.default.CONSTANTS.MaxLookAheadOffset&&"break"!==(r=n());)if("object"===(void 0===r?"undefined":s(r)))return r.v;if(d==g.length||d-C>=O.default.CONSTANTS.MaxLookAheadOffset||m){for(o=i=0;o<k.length;++o)k[o]=E(k[o]),k[o]<k[i]&&(i=o);if(0==i||i==y.C40)A=i;else{for(u=!0,a=k[i],c=0;c<k.length;++c)if(c!=i&&k[c]<=a){u=!1;break}u&&(A=i)}}return{d_len:b,newCharset:p[A]}}},{key:"getMatrix",value:function t(){var e,n,r,i,o,u,a,c,s,f,l,h,v,d,w,b,y,p,b,v,n,i,n,g,v,e=this,n=this.text,r=this.m_symbol,i=this.symbolSize,o=this.structuredAppend,u=this.structureNumber,a=this.symbolInfo;if(r.length>3116*(o?16:1))throw new m.TextTooLargeException;if(h=l=f=s=c=0,"squareAuto"!==i&&"rectangularAuto"!==i?a=O.default.getSymbolInfo(i):"rectangularAuto"===i&&(a=O.default.getSymbolInfo("rectangular16x48")),this.symbolInfo=a,o||(c=(v=this.preEncode(c,s)).s_pos,s=v.c_pos),d=a.symbolDataCapacity,f=o?(d-=4,4):(d-=s,s),!this.checkValue(c))throw new m.InvalidTextException(n);for(w=void 0;l<(o?O.default.CONSTANTS.MaxStructures:1)&&c<r.length;l++)h^=r[c],y=(b=this.getEncodingUnits(c,d)).s_taken,p=b.c_length,b=b.units,c+=y,l==u&&(w=b,f+=p);if(null==w)throw new m.InvalidStructureNumberException;if(c<r.length)throw new m.TextTooLargeException;return"squareAuto"!==i&&"rectangularAuto"!==i||(a=O.default.getSuitableSymbolSize(i,f),this.symbolInfo=a),o&&(s=this.encodeStructureHeader(s,l,k(h^r[r.length-1]))),w.forEach(function(t){return s=e.encode(t,s)}),s<a.symbolDataCapacity&&this.padRight(s),v=this.eccProcess(),i=(n=O.default.getInfoOfRegions(a.regions)).rowOfRegion,n=n.colOfRegion,v=(g=new C.default(v,a.symbolRows-2*i,a.symbolColumns-2*n)).ECC200(),this.placeModules(v)}},{key:"eccProcess",value:function t(){var e,n,r,i,o,u,a,c,s,f,e=this.symbolInfo,n=this.m_code,r=e.symbolDataCapacity/e.interleavedBlocks,i=e.eccLength/e.interleavedBlocks;for(144==e.symbolRows&&++r,o=[],u=0;u<e.interleavedBlocks;++u){for(a=0,c=u;a<r&&c<e.symbolDataCapacity;++a,c+=e.interleavedBlocks)o[a]=n[c];for(s=(0,l.default)(o,0,a,i),c=u,f=0;f<s.length;++f,c+=e.interleavedBlocks)n[e.symbolDataCapacity+c]=s[f]}return n}},{key:"placeModules",value:function t(e){for(var n,r,i,o,u,a,c,n=this.symbolInfo,r=O.default.createModules(n.symbolRows,n.symbolColumns),i=O.default.getInfoOfRegions(n.regions),o=i.rowOfRegion,u=i.colOfRegion,a=0;a<o;a++)for(c=0;c<u;c++)O.default.setFinder(r,n,a,c),O.default.setRegionData(r,n,a,c,e);return r}}]),e.default=h},function(t,e,n){"use strict";var s,r,i,o,u,a,c,f,l,h;for(Object.defineProperty(e,"__esModule",{value:!0}),e.default=w,s=n(0),r=45,i=128,o=1,u=(0,s.fillArray)(new Array(256),0),a=(0,s.fillArray)(new Array(256),0),c=1,f=0;l=c%=256,u[f]=c,a[c]=f%256,c<<=1,0!=(l&i)&&(c^=45),++f<=255;);function v(t,e){return(t^e)%256}function d(t,e){return 0==t||0==e?0:u[(a[t]+a[e])%255]}function w(t,e,n,r){for(var i,o,u,a,c,i=(0,s.fillArray)(new Array(r),0),o=h[r],u=e;u<e+n;++u){for(a=v(i[r-1],t[u]),c=r-1;0<c;--c)i[c]=v(d(a,o[c]),i[c-1]);i[0]=d(o[0],a)}return i.reverse(),i}h=[null,null,null,null,null,[228,48,15,111,62],null,[23,68,144,134,240,92,254],null,null,[28,24,185,166,223,248,116,255,110,61],[175,138,205,12,194,168,39,245,60,97,120],[41,153,158,91,61,42,142,213,97,178,100,242],null,[156,97,192,252,95,9,157,119,138,45,18,186,83,185],null,null,null,[83,195,100,39,188,75,66,61,241,213,109,129,94,254,225,48,90,188],null,[15,195,244,9,233,71,168,2,188,160,153,145,253,79,108,82,27,174,186,172],null,null,null,[52,190,88,205,109,39,176,21,155,197,251,223,155,21,5,172,254,124,12,181,184,96,50,193],null,null,null,[211,231,43,97,71,96,103,174,37,151,170,53,75,34,249,121,17,138,110,213,141,136,120,151,233,168,93,255],null,null,null,null,null,null,null,[245,127,242,218,130,250,162,181,102,120,84,179,220,251,80,182,229,18,2,4,68,33,101,137,95,119,115,44,175,184,59,25,225,98,81,112],null,null,null,null,null,[77,193,137,31,19,38,22,153,247,105,122,2,245,133,242,8,175,95,100,9,167,105,214,111,57,121,21,1,253,57,54,101,248,202,69,50,150,177,226,5,9,5],null,null,null,null,null,[245,132,172,223,96,32,117,22,238,133,238,231,205,188,237,87,191,106,16,147,118,23,37,90,170,205,131,88,120,100,66,138,186,240,82,44,176,87,187,147,160,175,69,213,92,253,225,19],null,null,null,null,null,null,null,[175,9,223,238,12,17,220,208,100,29,175,170,230,192,215,235,150,159,36,223,38,200,132,54,228,146,218,234,117,203,29,232,144,238,22,150,201,117,62,207,164,13,137,245,127,67,247,28,155,43,203,107,233,53,143,46],null,null,null,null,null,[242,93,169,50,144,210,39,118,202,188,201,189,143,108,196,37,185,112,134,230,245,63,197,190,250,106,185,221,175,64,114,71,161,44,147,6,27,218,51,63,87,10,40,130,188,17,163,31,176,170,4,107,232,7,94,166,224,124,86,47,11,204],null,null,null,null,null,[220,228,173,89,251,149,159,56,89,33,147,244,154,36,73,127,213,136,248,180,234,197,158,177,68,122,93,213,15,160,227,236,66,139,153,185,202,167,179,25,220,232,96,210,231,136,223,239,181,241,59,52,172,25,49,232,211,189,64,54,108,153,132,63,96,103,82,186]]},function(t,e,n){"use strict";var r,n,i,o;function u(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function a(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e,n){c(this,s),this.nrow=e,this.ncol=n,this.data=t,this.matrix=i.default.createModules(e,n)}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t},n=n(8),i=a(n),r(s,[{key:"ECC200",value:function t(){var e,n,r,i,o,u,e=this.nrow,n=this.ncol,r=this.matrix,i=4,o=0,u=0;do{for(i==e&&0==o&&this.corner1(u++),i==e-2&&0==o&&n%4&&this.corner2(u++),i==e-2&&0==o&&n%8==4&&this.corner3(u++),i!=e+4||2!=o||n%8||this.corner4(u++);i<e&&0<=o&&null===r[i][o]&&this.utah(i,o,u++),o+=2,0<=(i-=2)&&o<n;);for(i+=1,o+=3;0<=i&&o<n&&null===r[i][o]&&this.utah(i,o,u++),o-=2,(i+=2)<e&&0<=o;);}while(o+=1,(i+=3)<e||o<n);return r[e-1][n-1]||(r[e-1][n-1]=r[e-2][n-2]=1,r[e-2][n-1]=r[e-1][n-2]=0),r}},{key:"module",value:function t(e,n,r,i){var o,u,a,c,s,o=this.nrow,u=this.ncol,a=this.matrix,c=this.data;e<0&&(e+=o,n+=4-(o+4)%8),n<0&&(n+=u,e+=4-(u+4)%8),a[e][n]=0!=(c[r]&(s=(1<<8-i)%256))?1:0}},{key:"utah",value:function t(e,n,r){this.module(e-2,n-2,r,1),this.module(e-2,n-1,r,2),this.module(e-1,n-2,r,3),this.module(e-1,n-1,r,4),this.module(e-1,n,r,5),this.module(e,n-2,r,6),this.module(e,n-1,r,7),this.module(e,n,r,8)}},{key:"corner1",value:function t(e){var n=this.nrow,r=this.ncol;this.module(n-1,0,e,1),this.module(n-1,1,e,2),this.module(n-1,2,e,3),this.module(0,r-2,e,4),this.module(0,r-1,e,5),this.module(1,r-1,e,6),this.module(2,r-1,e,7),this.module(3,r-1,e,8)}},{key:"corner2",value:function t(e){var n=this.nrow,r=this.ncol;this.module(n-3,0,e,1),this.module(n-2,0,e,2),this.module(n-1,0,e,3),this.module(0,r-4,e,4),this.module(0,r-3,e,5),this.module(0,r-2,e,6),this.module(0,r-1,e,7),this.module(1,r-1,e,8)}},{key:"corner3",value:function t(e){var n=this.nrow,r=this.ncol;this.module(n-3,0,e,1),this.module(n-2,0,e,2),this.module(n-1,0,e,3),this.module(0,r-2,e,4),this.module(0,r-1,e,5),this.module(1,r-1,e,6),this.module(2,r-1,e,7),this.module(3,r-1,e,8)}},{key:"corner4",value:function t(e){var n=this.nrow,r=this.ncol;this.module(n-1,0,e,1),this.module(n-1,r-1,e,2),this.module(0,r-3,e,3),this.module(0,r-2,e,4),this.module(0,r-1,e,5),this.module(1,r-3,e,6),this.module(1,r-2,e,7),this.module(1,r-1,e,8)}}]),e.default=s},function(t,e,n){"use strict";var r,i,v,f,o,i,l,u;function a(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function c(t){return t&&t.__esModule?t:{default:t}}function s(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){h(this,d),this.text=t,this.m_symbol=(0,o.str2Array)(t).map(function(t){return t.charCodeAt(0)}),this.symbolSize=e.ecc000_140SymbolSize,this.eccMode=e.eccMode,this.m_code=[],this.m_module=[]}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t},i=n(43),v=c(i),f=n(1),o=n(0),i=n(44),l=c(i),r(d,[{key:"getMatrix",value:function t(){var e,n,r,i,o,u,a,c,n,s,c,n,n,e=this.m_symbol,n=this.symbolSize,r=this.eccMode,i=this.m_code;if(569<e.length)throw new f.TextTooLargeException;if(o=v.default.chooseEncodationScheme(e),u="ECC000"===r?7:19,a=this.calculateDataBits(o),c=this.calculateTotalBits(o,u,a),n=this.f=v.default.getProperSymbolSize(n,c),c>v.default.getSymbolSizeInfo(n))throw new f.TextTooLargeException;return a+=30,(c=new l.default(s=[])).putBitsMSF(v.default.Constants.getFormatID(o)<<27,5),n=this.crcProcess(o),c.putBitsLSF(n,16),c.putBitsLSF(e.length,9),this.encode(o,c),(n=new l.default(i)).putBitsLSF(v.default.getECC(r).headerBits,u),c.offset=0,this.eccProcess(n,c,a),this.randomizeBits(),this.placeModule()}},{key:"eccProcess",value:function t(e,n,r){var i,o,u,a,c,s,f,l,h,i=this.eccMode;if("ECC000"===i)for(;n.offset<r;)e.putBit(n.fetchBit());else{a=!(u=[(o=v.default.getECC(i).eccInfo).inputBits]);do{for(a=!1,c=0;c<o.inputBits;++c)u[c]>>=1,u[c]=v.default.setBit(u[c],o.registerBits[c],n.fetchBit());for(s=!1,f=0;f<o.outputBits;++f){for(s=!1,l=0;l<o.outputMasks[f].length;++l)s^=0!=(u[o.outputMasks[f][l].registerNumber]&o.outputMasks[f][l].mask);e.putBit(s)}if(n.offset>=r){for(h=0;h<u.length&&0==u[h];++h);h==u.length&&(a=!0)}}while(!a)}}},{key:"randomizeBits",value:function t(){for(var e,n,r,i,e=this.m_code,n=this.f,r=~~((v.default.getSymbolSizeInfo(n)+7)/8),i=0;i<r;++i)e[i]^=v.default.Constants.RandomizeBytes[i]}},{key:"crcProcess",value:function t(e){var n,r,i,o,u,a,c,n=this.m_symbol,r=0,i=[];for(i.push(v.default.Constants.getFormatID(e)+1),i.push(0),i.push.apply(i,s(n)),o=33800,u=0;u<i.length;++u)for(a=0;a<8;++a)c=0!=(1&r),r>>=1,0!=(i[u]&1<<a)^c&&(r^=o);return r}},{key:"calculateDataBits",value:function t(e){var n,r,n=this.m_symbol,r=v.default.Constants.GroupLengths[e];return~~(n.length/r)*v.default.Constants.BitLengths[e][0]+(n.length%r==0?0:v.default.Constants.BitLengths[e][n.length%r])}},{key:"calculateTotalBits",value:function t(e,n,r){var i,r,i,o,i=this.eccMode,r=30+r,i=v.default.getECC(i).eccInfo,o;return n+(~~((r+i.inputBits-1)/i.inputBits)+i.registerBits[i.inputBits-1])*i.outputBits}},{key:"encode",value:function t(e,n){for(var r,i,o,u,a,c,s,f,r=this.m_symbol,i=0,o=e,u=v.default.Constants.GroupLengths[o],a=v.default.Constants.BaseValues[o],c=0;c<r.length;){for(i=0,s=1;i+=v.default.getCodeWord(e,r[c++])*s,s*=a,c%u!=0&&c<r.length;);n.putBitsLSF(i,v.default.Constants.BitLengths[o][f=c%u])}}},{key:"placeModule",value:function t(){for(var e,n,r,i,o,u,a,c,e,r,e=this.m_module,n=this.f,r=this.m_code,i=v.default.getSymbolSizeInfo(n),o=new l.default(e),u=new l.default(r),a=v.default.getModuleMapping(n),c=0;c<i;++c)o.putBit(u.getBit(a[c]));return e=2*v.default.getSymbolSizeValue(n)+9,r=v.default.createModules(e),v.default.setFinder(r,e),v.default.setRegionData(r,e,o),r}}]),e.default=d},function(t,e,n){"use strict";var r,i,a,o,u,c,s,f,l;function h(t){return t&&t.__esModule?t:{default:t}}function v(t){return 48<=t&&t<=57||32==t?u.Base11:65<=t&&t<=90?u.Base27:44<=t&&t<=47?u.Base41:t<=c?u.ASCII:u.Byte}function d(t){for(var e,n,r,e=u.Base11,n=0,r=t.length;n<r&&(e=w(e,v(t[n])))!==u.Byte;n++);return e}function w(t,e){if(t==e)return t;if(t==u.Byte||e==u.Byte)return u.Byte;var n=t;switch(t){case u.Base11:e==u.Base27?n=u.Base37:n<e&&(n=e);break;case u.Base27:e==u.Base11?n=u.Base37:n<e&&(n=e);break;case u.Base37:case u.Base41:n<e&&(n=e)}return n}function b(t){return t%256}function y(t,e){if(t==u.Byte)return e;if(t==u.ASCII)return b(127&e);var n=0;if(32!=e&&(48<=e&&e<=57&&(n=b(e-47)),t!=u.Base11)&&(n+=26,65<=e&&e<=90&&(n=b(e-64)),t==u.Base41))switch(e){case 44:return 38;case 45:return 39;case 46:return 37;case 47:return 40}return n}function p(t,e,n){var e=1<<e;return t&=~e,n&&(t|=e),t}function g(t,e){this.registerNumber=t,this.mask=1<<e}function m(t){var t=f[t];return{eccInfo:s.ECCInfos[t],headerBits:s.HeaderBits[t]}}function C(t){var e=l.indexOf(t);if(e<0)throw new o.BadArgumentsException({ecc000_140SymbolSize:t});return s.SymbolCapacities[e]}function k(t){return l.indexOf(t)}function A(t,e){if("auto"==t){t="square9";for(var n=0;n<=l.length-1;++n)if(e<=s.SymbolCapacities[n]){t=l[n];break}}return t}function O(t){var t=l.indexOf(t);return s.ModuleMapping[t]}function E(t,e){for(var n,r,i,o,u,n=t[0],r=0;r<e;r++)(0,a.isEven)(r)?n[r]=1:n[r]=0;for(i=t[e-1],o=0;o<e;o++)i[o]=1;for(u=1;u<e-1;u++)t[u][0]=1,(0,a.isEven)(u)?t[u][e-1]=1:t[u][e-1]=0}function j(t,e,n){var r,i;for(e-=2,r=0;r<e;++r)for(i=0;i<e;++i)t[1+r][1+i]=+n.getBit(r*e+i)}Object.defineProperty(e,"__esModule",{value:!0}),i=h(r=n(8)),a=n(0),o=n(1),u={Base11:0,Base27:1,Base37:2,Base41:3,ASCII:4,Byte:5},c=127,s={BaseValues:[11,27,37,41,128,256],GroupLengths:[6,5,4,4,1,1],HeaderBits:[126,57358,465934,523278,517006],BitLengths:[[21,4,7,11,14,18,21],[24,5,10,15,20,24],[21,6,11,16,21],[22,6,11,17,22],[7,7],[8,8]],SymbolCapacities:function(){for(var t,e,t=[],e=7;e<50;e+=2)t.push(e*e);return t}(),getFormatID:function t(e){return e===u.Base37?++e:e===u.Base41&&--e,e},ECCInfos:[{inputBits:1,registerBits:[0],outputBits:1,outputMasks:null},{inputBits:3,registerBits:[3,3,3],outputBits:4,outputMasks:[[new g(0,3),new g(1,0),new g(2,2),new g(2,1),new g(2,0)],[new g(0,1),new g(0,0),new g(1,3),new g(1,2),new g(1,0)],[new g(0,2),new g(0,1),new g(0,0),new g(1,2),new g(2,3),new g(2,2)],[new g(0,3),new g(0,2),new g(1,3),new g(1,2),new g(1,1),new g(2,3),new g(2,2),new g(2,0)]]},{inputBits:2,registerBits:[10,11],outputBits:3,outputMasks:[[new g(0,10),new g(0,9),new g(0,7),new g(0,5),new g(0,4),new g(0,3),new g(0,0),new g(1,8),new g(1,4),new g(1,3),new g(1,0)],[new g(0,9),new g(0,6),new g(0,5),new g(0,2),new g(0,1),new g(0,0),new g(1,11),new g(1,8),new g(1,5),new g(1,3),new g(1,2)],[new g(0,10),new g(0,5),new g(0,4),new g(0,3),new g(1,11),new g(1,10),new g(1,9),new g(1,7),new g(1,4),new g(1,2),new g(1,0)]]},{inputBits:1,registerBits:[15],outputBits:2,outputMasks:[[new g(0,15),new g(0,13),new g(0,10),new g(0,9),new g(0,8),new g(0,7),new g(0,6),new g(0,5),new g(0,0)],[new g(0,15),new g(0,14),new g(0,12),new g(0,11),new g(0,9),new g(0,4),new g(0,2),new g(0,1),new g(0,0)]]},{inputBits:1,registerBits:[13],outputBits:4,outputMasks:[[new g(0,13),new g(0,9),new g(0,6),new g(0,3),new g(0,1),new g(0,0)],[new g(0,13),new g(0,10),new g(0,9),new g(0,6),new g(0,5),new g(0,4),new g(0,3),new g(0,2),new g(0,0)],[new g(0,13),new g(0,12),new g(0,11),new g(0,9),new g(0,8),new g(0,6),new g(0,4),new g(0,2),new g(0,1),new g(0,0)],[new g(0,13),new g(0,12),new g(0,11),new g(0,9),new g(0,8),new g(0,6),new g(0,4),new g(0,3),new g(0,2),new g(0,1),new g(0,0)]]}],RandomizeBytes:[5,255,199,49,136,168,131,156,100,135,159,100,179,224,77,156,128,41,58,144,179,139,158,144,69,191,245,104,75,8,207,68,184,212,76,91,160,171,114,82,28,228,210,116,164,218,138,8,250,167,199,221,0,48,169,230,100,171,213,139,237,156,121,248,8,209,139,198,34,100,11,51,67,208,128,212,68,149,46,111,94,19,141,71,98,6,235,128,130,201,65,213,115,138,48,35,36,227,127,178,168,11,237,56,66,76,215,176,206,152,189,225,213,228,195,29,21,74,207,209,31,57,38,24,147,252,25,178,45,171,242,110,161,159,175,208,138,43,160,86,176,65,109,67,164,99,243,170,125,175,53,87,194,148,74,101,11,65,222,184,226,48,18,39,155,102,43,52,91,184,153,232,40,113,208,149,107,7,77,60,122,179,229,41,179,186,140,204,45,224,201,192,34,236,76,222,248,88,7,252,25,242,100,226,195,226,216,185,253,103,160,188,245,46,201,73,117,98,130,39,16,244,25,111,73,247,179,132,20,234,235,225,42,49,171,71,125,8,41,172,187,114,250,250,98,184,200,211,134,137,149,253,223,204,156,173,241,212,108,100,35,36,42,86,31,54,235,183,214,255,218,87,244,80,121,8,0],ModuleMapping:[[2,45,10,38,24,21,1,12,40,26,5,33,19,47,22,31,29,15,43,8,36,34,20,48,13,41,27,6,44,9,37,23,17,30,16,39,25,4,32,18,46,11,0,28,14,42,7,35,3],[2,19,55,10,46,28,64,73,1,62,17,53,35,71,8,80,44,26,49,31,67,4,76,40,22,58,13,69,6,78,42,24,60,15,51,33,74,38,20,56,11,47,29,65,37,25,61,16,52,34,70,7,79,43,12,48,30,66,63,75,39,21,57,32,68,5,77,41,23,59,14,50,0,72,36,18,54,9,45,27,3],[2,26,114,70,15,103,59,37,81,4,1,117,73,18,106,62,40,84,7,95,51,29,12,100,56,34,78,92,89,45,23,111,67,65,43,87,10,98,54,32,120,76,21,109,82,5,93,49,27,115,71,16,104,60,38,96,52,30,118,74,19,107,63,41,85,8,24,112,68,13,101,57,35,79,48,90,46,75,20,108,64,42,86,9,97,53,31,119,102,58,36,80,77,91,47,25,113,69,14,39,83,6,94,50,28,116,72,17,105,61,0,88,44,22,110,66,11,99,55,33,3],[2,159,29,133,81,16,120,68,42,146,94,91,1,37,141,89,24,128,76,50,154,102,11,115,63,167,83,18,122,70,44,148,96,5,109,57,161,31,135,125,73,47,151,99,8,112,60,164,34,138,86,21,40,144,92,107,105,53,157,27,131,79,14,118,66,103,12,116,64,168,38,142,90,25,129,77,51,155,110,58,162,32,136,84,19,123,71,45,149,97,6,165,35,139,87,22,126,74,48,152,100,9,113,61,132,80,15,119,67,41,145,93,55,106,54,158,28,23,127,75,49,153,101,10,114,62,166,36,140,88,69,43,147,95,4,108,56,160,30,134,82,17,121,150,98,7,111,59,163,33,137,85,20,124,72,46,0,104,52,156,26,130,78,13,117,65,39,143,3],[2,187,37,157,97,217,22,142,82,202,52,172,112,7,1,41,161,101,221,26,146,86,206,56,176,116,11,131,71,191,93,213,18,138,78,198,48,168,108,105,123,63,183,33,153,28,148,88,208,58,178,118,13,133,73,193,43,163,103,223,80,200,50,170,110,5,125,65,185,35,155,95,215,20,140,54,174,114,9,129,69,189,39,159,99,219,24,144,84,204,106,127,121,61,181,31,151,91,211,16,136,76,196,46,166,134,74,194,44,164,104,224,29,149,89,209,59,179,119,14,186,36,156,96,216,21,141,81,201,51,171,111,6,126,66,160,100,220,25,145,85,205,55,175,115,10,130,70,190,40,212,17,137,77,197,47,167,107,67,122,62,182,32,152,92,147,87,207,57,177,117,12,132,72,192,42,162,102,222,27,199,49,169,109,4,124,64,184,34,154,94,214,19,139,79,173,113,8,128,68,188,38,158,98,218,23,143,83,203,53,0,120,60,180,30,150,90,210,15,135,75,195,45,165,3],[2,69,205,35,171,103,239,18,154,86,222,52,188,120,256,273,1,220,50,186,118,254,33,169,101,237,67,203,135,271,16,288,152,84,178,110,246,25,161,93,229,59,195,127,263,8,280,144,76,212,42,250,29,165,97,233,63,199,131,267,12,284,148,80,216,46,182,114,157,89,225,55,191,123,259,4,276,140,72,208,38,174,106,242,21,235,65,201,133,269,14,286,150,82,218,48,184,116,252,31,167,99,193,125,261,6,278,142,74,210,40,176,108,244,23,159,91,227,57,265,10,282,146,78,214,44,180,112,248,27,163,95,231,61,197,129,274,138,70,206,36,172,104,240,19,155,87,223,53,189,121,257,137,83,219,49,185,117,253,32,168,100,236,66,202,134,270,15,287,151,41,177,109,245,24,160,92,228,58,194,126,262,7,279,143,75,211,113,249,28,164,96,232,62,198,130,266,11,283,147,79,215,45,181,20,156,88,224,54,190,122,258,255,275,139,71,207,37,173,105,241,98,234,64,200,132,268,13,285,149,81,217,47,183,115,251,30,166,56,192,124,260,5,277,141,73,209,39,175,107,243,22,158,90,226,128,264,9,281,145,77,213,43,179,111,247,26,162,94,230,60,196,0,272,136,68,204,34,170,102,238,17,153,85,221,51,187,119,3],[2,82,234,44,348,196,120,272,25,329,177,101,253,63,215,139,291,6,1,239,49,353,201,125,277,30,334,182,106,258,68,220,144,296,11,315,163,87,343,191,115,267,20,324,172,96,248,58,210,134,286,310,305,153,77,229,39,132,284,37,341,189,113,265,75,227,151,303,18,322,170,94,246,56,360,208,28,332,180,104,256,66,218,142,294,9,313,161,85,237,47,351,199,123,275,185,109,261,71,223,147,299,14,318,166,90,242,52,356,204,128,280,33,337,251,61,213,137,289,4,308,156,80,232,42,346,194,118,270,23,327,175,99,225,149,301,16,320,168,92,244,54,358,206,130,282,35,339,187,111,263,73,292,7,311,159,83,235,45,349,197,121,273,26,330,178,102,254,64,216,140,316,164,88,240,50,354,202,126,278,31,335,183,107,259,69,221,145,297,12,78,230,40,344,192,116,268,21,325,173,97,249,59,211,135,287,158,306,154,55,359,207,131,283,36,340,188,112,264,74,226,150,302,17,321,169,93,245,198,122,274,27,331,179,103,255,65,217,141,293,8,312,160,84,236,46,350,279,32,336,184,108,260,70,222,146,298,13,317,165,89,241,51,355,203,127,326,174,98,250,60,212,136,288,285,307,155,79,231,41,345,193,117,269,22,110,262,72,224,148,300,15,319,167,91,243,53,357,205,129,281,34,338,186,62,214,138,290,5,309,157,81,233,43,347,195,119,271,24,328,176,100,252,143,295,10,314,162,86,238,48,352,200,124,276,29,333,181,105,257,67,219,0,304,152,76,228,38,342,190,114,266,19,323,171,95,247,57,209,133,3],[2,88,424,256,46,382,214,130,298,25,361,193,109,277,67,403,235,151,319,4,1,437,269,59,395,227,143,311,38,374,206,122,290,80,416,248,164,332,17,353,185,101,49,385,217,133,301,28,364,196,112,280,70,406,238,154,322,7,343,175,91,427,259,222,138,306,33,369,201,117,285,75,411,243,159,327,12,348,180,96,432,264,54,390,295,22,358,190,106,274,64,400,232,148,316,340,337,169,85,421,253,43,379,211,127,377,209,125,293,83,419,251,167,335,20,356,188,104,440,272,62,398,230,146,314,41,115,283,73,409,241,157,325,10,346,178,94,430,262,52,388,220,136,304,31,367,199,78,414,246,162,330,15,351,183,99,435,267,57,393,225,141,309,36,372,204,120,288,236,152,320,5,341,173,89,425,257,47,383,215,131,299,26,362,194,110,278,68,404,333,18,354,186,102,438,270,60,396,228,144,312,39,375,207,123,291,81,417,249,165,344,176,92,428,260,50,386,218,134,302,29,365,197,113,281,71,407,239,155,323,8,97,433,265,55,391,223,139,307,34,370,202,118,286,76,412,244,160,328,13,349,181,254,44,380,212,128,296,23,359,191,107,275,65,401,233,149,317,172,338,170,86,422,397,229,145,313,40,376,208,124,292,82,418,250,166,334,19,355,187,103,439,271,61,135,303,30,366,198,114,282,72,408,240,156,324,9,345,177,93,429,261,51,387,219,35,371,203,119,287,77,413,245,161,329,14,350,182,98,434,266,56,392,224,140,308,192,108,276,66,402,234,150,318,315,339,171,87,423,255,45,381,213,129,297,24,360,289,79,415,247,163,331,16,352,184,100,436,268,58,394,226,142,310,37,373,205,121,405,237,153,321,6,342,174,90,426,258,48,384,216,132,300,27,363,195,111,279,69,158,326,11,347,179,95,431,263,53,389,221,137,305,32,368,200,116,284,74,410,242,0,336,168,84,420,252,42,378,210,126,294,21,357,189,105,273,63,399,231,147,3],[2,102,470,286,56,424,240,148,516,332,33,401,217,125,493,309,79,447,263,171,355,10,1,476,292,62,430,246,154,522,338,39,407,223,131,499,315,85,453,269,177,361,16,384,200,108,50,418,234,142,510,326,27,395,211,119,487,303,73,441,257,165,349,4,372,188,96,464,280,249,157,525,341,42,410,226,134,502,318,88,456,272,180,364,19,387,203,111,479,295,65,433,513,329,30,398,214,122,490,306,76,444,260,168,352,7,375,191,99,467,283,53,421,237,145,36,404,220,128,496,312,82,450,266,174,358,13,381,197,105,473,289,59,427,243,151,519,335,208,116,484,300,70,438,254,162,346,378,369,185,93,461,277,47,415,231,139,507,323,24,392,505,321,91,459,275,183,367,22,390,206,114,482,298,68,436,252,160,528,344,45,413,229,137,80,448,264,172,356,11,379,195,103,471,287,57,425,241,149,517,333,34,402,218,126,494,310,270,178,362,17,385,201,109,477,293,63,431,247,155,523,339,40,408,224,132,500,316,86,454,350,5,373,189,97,465,281,51,419,235,143,511,327,28,396,212,120,488,304,74,442,258,166,388,204,112,480,296,66,434,250,158,526,342,43,411,227,135,503,319,89,457,273,181,365,20,100,468,284,54,422,238,146,514,330,31,399,215,123,491,307,77,445,261,169,353,8,376,192,290,60,428,244,152,520,336,37,405,221,129,497,313,83,451,267,175,359,14,382,198,106,474,416,232,140,508,324,25,393,209,117,485,301,71,439,255,163,347,194,370,186,94,462,278,48,159,527,343,44,412,228,136,504,320,90,458,274,182,366,21,389,205,113,481,297,67,435,251,331,32,400,216,124,492,308,78,446,262,170,354,9,377,193,101,469,285,55,423,239,147,515,406,222,130,498,314,84,452,268,176,360,15,383,199,107,475,291,61,429,245,153,521,337,38,118,486,302,72,440,256,164,348,345,371,187,95,463,279,49,417,233,141,509,325,26,394,210,317,87,455,271,179,363,18,386,202,110,478,294,64,432,248,156,524,340,41,409,225,133,501,443,259,167,351,6,374,190,98,466,282,52,420,236,144,512,328,29,397,213,121,489,305,75,173,357,12,380,196,104,472,288,58,426,242,150,518,334,35,403,219,127,495,311,81,449,265,0,368,184,92,460,276,46,414,230,138,506,322,23,391,207,115,483,299,69,437,253,161,3],[2,603,103,503,303,53,453,253,153,553,353,28,428,228,128,528,328,78,478,278,178,578,378,375,1,123,523,323,73,473,273,173,573,373,48,448,248,148,548,348,98,498,298,198,598,398,23,423,223,623,311,61,461,261,161,561,361,36,436,236,136,536,336,86,486,286,186,586,386,11,411,211,611,111,511,467,267,167,567,367,42,442,242,142,542,342,92,492,292,192,592,392,17,417,217,617,117,517,317,67,155,555,355,30,430,230,130,530,330,80,480,280,180,580,380,5,405,205,605,105,505,305,55,455,255,370,45,445,245,145,545,345,95,495,295,195,595,395,20,420,220,620,120,520,320,70,470,270,170,570,433,233,133,533,333,83,483,283,183,583,383,8,408,208,608,108,508,308,58,458,258,158,558,358,33,139,539,339,89,489,289,189,589,389,14,414,214,614,114,514,314,64,464,264,164,564,364,39,439,239,326,76,476,276,176,576,376,403,401,201,601,101,501,301,51,451,251,151,551,351,26,426,226,126,526,499,299,199,599,399,24,424,224,624,124,524,324,74,474,274,174,574,374,49,449,249,149,549,349,99,187,587,387,12,412,212,612,112,512,312,62,462,262,162,562,362,37,437,237,137,537,337,87,487,287,393,18,418,218,618,118,518,318,68,468,268,168,568,368,43,443,243,143,543,343,93,493,293,193,593,406,206,606,106,506,306,56,456,256,156,556,356,31,431,231,131,531,331,81,481,281,181,581,381,6,621,121,521,321,71,471,271,171,571,371,46,446,246,146,546,346,96,496,296,196,596,396,21,421,221,509,309,59,459,259,159,559,359,34,434,234,134,534,334,84,484,284,184,584,384,9,409,209,609,109,65,465,265,165,565,365,40,440,240,140,540,340,90,490,290,190,590,390,15,415,215,615,115,515,315,252,152,552,352,27,427,227,127,527,327,77,477,277,177,577,377,203,402,202,602,102,502,302,52,452,572,372,47,447,247,147,547,347,97,497,297,197,597,397,22,422,222,622,122,522,322,72,472,272,172,35,435,235,135,535,335,85,485,285,185,585,385,10,410,210,610,110,510,310,60,460,260,160,560,360,241,141,541,341,91,491,291,191,591,391,16,416,216,616,116,516,316,66,466,266,166,566,366,41,441,529,329,79,479,279,179,579,379,4,404,204,604,104,504,304,54,454,254,154,554,354,29,429,229,129,94,494,294,194,594,394,19,419,219,619,119,519,319,69,469,269,169,569,369,44,444,244,144,544,344,282,182,582,382,7,407,207,607,107,507,307,57,457,257,157,557,357,32,432,232,132,532,332,82,482,588,388,13,413,213,613,113,513,313,63,463,263,163,563,363,38,438,238,138,538,338,88,488,288,188,0,400,200,600,100,500,300,50,450,250,150,550,350,25,425,225,125,525,325,75,475,275,175,575,3],[2,658,118,550,334,64,496,280,712,172,604,388,37,469,253,685,145,577,361,91,523,307,199,631,415,10,1,125,557,341,71,503,287,719,179,611,395,44,476,260,692,152,584,368,98,530,314,206,638,422,17,449,233,665,327,57,489,273,705,165,597,381,30,462,246,678,138,570,354,84,516,300,192,624,408,405,435,219,651,111,543,511,295,727,187,619,403,52,484,268,700,160,592,376,106,538,322,214,646,430,25,457,241,673,133,565,349,79,714,174,606,390,39,471,255,687,147,579,363,93,525,309,201,633,417,12,444,228,660,120,552,336,66,498,282,613,397,46,478,262,694,154,586,370,100,532,316,208,640,424,19,451,235,667,127,559,343,73,505,289,721,181,32,464,248,680,140,572,356,86,518,302,194,626,410,5,437,221,653,113,545,329,59,491,275,707,167,599,383,265,697,157,589,373,103,535,319,211,643,427,22,454,238,670,130,562,346,76,508,292,724,184,616,400,49,481,143,575,359,89,521,305,197,629,413,8,440,224,656,116,548,332,62,494,278,710,170,602,386,35,467,251,683,366,96,528,312,204,636,420,15,447,231,663,123,555,339,69,501,285,717,177,609,393,42,474,258,690,150,582,514,298,190,622,406,442,433,217,649,109,541,325,55,487,271,703,163,595,379,28,460,244,676,136,568,352,82,215,647,431,26,458,242,674,134,566,350,80,512,296,728,188,620,404,53,485,269,701,161,593,377,107,539,323,418,13,445,229,661,121,553,337,67,499,283,715,175,607,391,40,472,256,688,148,580,364,94,526,310,202,634,452,236,668,128,560,344,74,506,290,722,182,614,398,47,479,263,695,155,587,371,101,533,317,209,641,425,20,654,114,546,330,60,492,276,708,168,600,384,33,465,249,681,141,573,357,87,519,303,195,627,411,6,438,222,563,347,77,509,293,725,185,617,401,50,482,266,698,158,590,374,104,536,320,212,644,428,23,455,239,671,131,63,495,279,711,171,603,387,36,468,252,684,144,576,360,90,522,306,198,630,414,9,441,225,657,117,549,333,286,718,178,610,394,43,475,259,691,151,583,367,97,529,313,205,637,421,16,448,232,664,124,556,340,70,502,164,596,380,29,461,245,677,137,569,353,83,515,299,191,623,407,226,434,218,650,110,542,326,56,488,272,704,402,51,483,267,699,159,591,375,105,537,321,213,645,429,24,456,240,672,132,564,348,78,510,294,726,186,618,470,254,686,146,578,362,92,524,308,200,632,416,11,443,227,659,119,551,335,65,497,281,713,173,605,389,38,693,153,585,369,99,531,315,207,639,423,18,450,234,666,126,558,342,72,504,288,720,180,612,396,45,477,261,571,355,85,517,301,193,625,409,4,436,220,652,112,544,328,58,490,274,706,166,598,382,31,463,247,679,139,102,534,318,210,642,426,21,453,237,669,129,561,345,75,507,291,723,183,615,399,48,480,264,696,156,588,372,304,196,628,412,7,439,223,655,115,547,331,61,493,277,709,169,601,385,34,466,250,682,142,574,358,88,520,635,419,14,446,230,662,122,554,338,68,500,284,716,176,608,392,41,473,257,689,149,581,365,95,527,311,203,0,432,216,648,108,540,324,54,486,270,702,162,594,378,27,459,243,675,135,567,351,81,513,297,189,621,3],[2,703,123,587,355,819,65,529,297,761,181,645,413,36,500,268,732,152,616,384,94,558,326,790,210,674,442,7,1,141,605,373,837,83,547,315,779,199,663,431,54,518,286,750,170,634,402,112,576,344,808,228,692,460,25,489,257,721,359,823,69,533,301,765,185,649,417,40,504,272,736,156,620,388,98,562,330,794,214,678,446,11,475,243,707,127,591,76,540,308,772,192,656,424,47,511,279,743,163,627,395,105,569,337,801,221,685,453,18,482,250,714,134,598,366,830,293,757,177,641,409,32,496,264,728,148,612,380,90,554,322,786,206,670,438,435,467,235,699,119,583,351,815,61,525,201,665,433,56,520,288,752,172,636,404,114,578,346,810,230,694,462,27,491,259,723,143,607,375,839,85,549,317,781,419,42,506,274,738,158,622,390,100,564,332,796,216,680,448,13,477,245,709,129,593,361,825,71,535,303,767,187,651,513,281,745,165,629,397,107,571,339,803,223,687,455,20,484,252,716,136,600,368,832,78,542,310,774,194,658,426,49,730,150,614,382,92,556,324,788,208,672,440,5,469,237,701,121,585,353,817,63,527,295,759,179,643,411,34,498,266,632,400,110,574,342,806,226,690,458,23,487,255,719,139,603,371,835,81,545,313,777,197,661,429,52,516,284,748,168,96,560,328,792,212,676,444,9,473,241,705,125,589,357,821,67,531,299,763,183,647,415,38,502,270,734,154,618,386,335,799,219,683,451,16,480,248,712,132,596,364,828,74,538,306,770,190,654,422,45,509,277,741,161,625,393,103,567,204,668,436,471,465,233,697,117,581,349,813,59,523,291,755,175,639,407,30,494,262,726,146,610,378,88,552,320,784,463,28,492,260,724,144,608,376,840,86,550,318,782,202,666,434,57,521,289,753,173,637,405,115,579,347,811,231,695,478,246,710,130,594,362,826,72,536,304,768,188,652,420,43,507,275,739,159,623,391,101,565,333,797,217,681,449,14,717,137,601,369,833,79,543,311,775,195,659,427,50,514,282,746,166,630,398,108,572,340,804,224,688,456,21,485,253,586,354,818,64,528,296,760,180,644,412,35,499,267,731,151,615,383,93,557,325,789,209,673,441,6,470,238,702,122,836,82,546,314,778,198,662,430,53,517,285,749,169,633,401,111,575,343,807,227,691,459,24,488,256,720,140,604,372,532,300,764,184,648,416,39,503,271,735,155,619,387,97,561,329,793,213,677,445,10,474,242,706,126,590,358,822,68,771,191,655,423,46,510,278,742,162,626,394,104,568,336,800,220,684,452,17,481,249,713,133,597,365,829,75,539,307,640,408,31,495,263,727,147,611,379,89,553,321,785,205,669,437,239,466,234,698,118,582,350,814,60,524,292,756,176,55,519,287,751,171,635,403,113,577,345,809,229,693,461,26,490,258,722,142,606,374,838,84,548,316,780,200,664,432,273,737,157,621,389,99,563,331,795,215,679,447,12,476,244,708,128,592,360,824,70,534,302,766,186,650,418,41,505,164,628,396,106,570,338,802,222,686,454,19,483,251,715,135,599,367,831,77,541,309,773,193,657,425,48,512,280,744,381,91,555,323,787,207,671,439,4,468,236,700,120,584,352,816,62,526,294,758,178,642,410,33,497,265,729,149,613,573,341,805,225,689,457,22,486,254,718,138,602,370,834,80,544,312,776,196,660,428,51,515,283,747,167,631,399,109,791,211,675,443,8,472,240,704,124,588,356,820,66,530,298,762,182,646,414,37,501,269,733,153,617,385,95,559,327,682,450,15,479,247,711,131,595,363,827,73,537,305,769,189,653,421,44,508,276,740,160,624,392,102,566,334,798,218,0,464,232,696,116,580,348,812,58,522,290,754,174,638,406,29,493,261,725,145,609,377,87,551,319,783,203,667,3],[2,759,139,635,387,883,77,573,325,821,201,697,449,945,46,542,294,790,170,666,418,914,108,604,356,852,232,728,480,15,1,147,643,395,891,85,581,333,829,209,705,457,953,54,550,302,798,178,674,426,922,116,612,364,860,240,736,488,23,519,271,767,379,875,69,565,317,813,193,689,441,937,38,534,286,782,162,658,410,906,100,596,348,844,224,720,472,7,503,255,751,131,627,89,585,337,833,213,709,461,957,58,554,306,802,182,678,430,926,120,616,368,864,244,740,492,27,523,275,771,151,647,399,895,321,817,197,693,445,941,42,538,290,786,166,662,414,910,104,600,352,848,228,724,476,11,507,259,755,135,631,383,879,73,569,205,701,453,949,50,546,298,794,174,670,422,918,112,608,360,856,236,732,484,19,515,267,763,143,639,391,887,81,577,329,825,437,933,34,530,282,778,158,654,406,902,96,592,344,840,220,716,468,465,499,251,747,127,623,375,871,65,561,313,809,189,685,60,556,308,804,184,680,432,928,122,618,370,866,246,742,494,29,525,277,773,153,649,401,897,91,587,339,835,215,711,463,959,292,788,168,664,416,912,106,602,354,850,230,726,478,13,509,261,757,137,633,385,881,75,571,323,819,199,695,447,943,44,540,176,672,424,920,114,610,362,858,238,734,486,21,517,269,765,145,641,393,889,83,579,331,827,207,703,455,951,52,548,300,796,408,904,98,594,346,842,222,718,470,5,501,253,749,129,625,377,873,67,563,315,811,191,687,439,935,36,532,284,780,160,656,118,614,366,862,242,738,490,25,521,273,769,149,645,397,893,87,583,335,831,211,707,459,955,56,552,304,800,180,676,428,924,350,846,226,722,474,9,505,257,753,133,629,381,877,71,567,319,815,195,691,443,939,40,536,288,784,164,660,412,908,102,598,234,730,482,17,513,265,761,141,637,389,885,79,575,327,823,203,699,451,947,48,544,296,792,172,668,420,916,110,606,358,854,466,511,497,249,745,125,621,373,869,63,559,311,807,187,683,435,931,32,528,280,776,156,652,404,900,94,590,342,838,218,714,526,278,774,154,650,402,898,92,588,340,836,216,712,464,960,61,557,309,805,185,681,433,929,123,619,371,867,247,743,495,30,758,138,634,386,882,76,572,324,820,200,696,448,944,45,541,293,789,169,665,417,913,107,603,355,851,231,727,479,14,510,262,642,394,890,84,580,332,828,208,704,456,952,53,549,301,797,177,673,425,921,115,611,363,859,239,735,487,22,518,270,766,146,874,68,564,316,812,192,688,440,936,37,533,285,781,161,657,409,905,99,595,347,843,223,719,471,6,502,254,750,130,626,378,584,336,832,212,708,460,956,57,553,305,801,181,677,429,925,119,615,367,863,243,739,491,26,522,274,770,150,646,398,894,88,816,196,692,444,940,41,537,289,785,165,661,413,909,103,599,351,847,227,723,475,10,506,258,754,134,630,382,878,72,568,320,700,452,948,49,545,297,793,173,669,421,917,111,607,359,855,235,731,483,18,514,266,762,142,638,390,886,80,576,328,824,204,932,33,529,281,777,157,653,405,901,95,591,343,839,219,715,467,263,498,250,746,126,622,374,870,64,560,312,808,188,684,436,555,307,803,183,679,431,927,121,617,369,865,245,741,493,28,524,276,772,152,648,400,896,90,586,338,834,214,710,462,958,59,787,167,663,415,911,105,601,353,849,229,725,477,12,508,260,756,136,632,384,880,74,570,322,818,198,694,446,942,43,539,291,671,423,919,113,609,361,857,237,733,485,20,516,268,764,144,640,392,888,82,578,330,826,206,702,454,950,51,547,299,795,175,903,97,593,345,841,221,717,469,4,500,252,748,128,624,376,872,66,562,314,810,190,686,438,934,35,531,283,779,159,655,407,613,365,861,241,737,489,24,520,272,768,148,644,396,892,86,582,334,830,210,706,458,954,55,551,303,799,179,675,427,923,117,845,225,721,473,8,504,256,752,132,628,380,876,70,566,318,814,194,690,442,938,39,535,287,783,163,659,411,907,101,597,349,729,481,16,512,264,760,140,636,388,884,78,574,326,822,202,698,450,946,47,543,295,791,171,667,419,915,109,605,357,853,233,0,496,248,744,124,620,372,868,62,558,310,806,186,682,434,930,31,527,279,775,155,651,403,899,93,589,341,837,217,713,3],[2,265,793,133,661,397,925,67,595,331,859,199,727,463,991,34,562,298,826,166,694,430,958,100,628,364,892,232,760,496,1024,1057,1,824,164,692,428,956,98,626,362,890,230,758,494,1022,65,593,329,857,197,725,461,989,131,659,395,923,263,791,527,1055,32,1088,560,296,676,412,940,82,610,346,874,214,742,478,1006,49,577,313,841,181,709,445,973,115,643,379,907,247,775,511,1039,16,1072,544,280,808,148,948,90,618,354,882,222,750,486,1014,57,585,321,849,189,717,453,981,123,651,387,915,255,783,519,1047,24,1080,552,288,816,156,684,420,602,338,866,206,734,470,998,41,569,305,833,173,701,437,965,107,635,371,899,239,767,503,1031,8,1064,536,272,800,140,668,404,932,74,886,226,754,490,1018,61,589,325,853,193,721,457,985,127,655,391,919,259,787,523,1051,28,1084,556,292,820,160,688,424,952,94,622,358,738,474,1002,45,573,309,837,177,705,441,969,111,639,375,903,243,771,507,1035,12,1068,540,276,804,144,672,408,936,78,606,342,870,210,1010,53,581,317,845,185,713,449,977,119,647,383,911,251,779,515,1043,20,1076,548,284,812,152,680,416,944,86,614,350,878,218,746,482,565,301,829,169,697,433,961,103,631,367,895,235,763,499,1027,4,1060,532,268,796,136,664,400,928,70,598,334,862,202,730,466,994,37,855,195,723,459,987,129,657,393,921,261,789,525,1053,30,1086,558,294,822,162,690,426,954,96,624,360,888,228,756,492,1020,63,591,327,707,443,971,113,641,377,905,245,773,509,1037,14,1070,542,278,806,146,674,410,938,80,608,344,872,212,740,476,1004,47,575,311,839,179,979,121,649,385,913,253,781,517,1045,22,1078,550,286,814,154,682,418,946,88,616,352,880,220,748,484,1012,55,583,319,847,187,715,451,633,369,897,237,765,501,1029,6,1062,534,270,798,138,666,402,930,72,600,336,864,204,732,468,996,39,567,303,831,171,699,435,963,105,917,257,785,521,1049,26,1082,554,290,818,158,686,422,950,92,620,356,884,224,752,488,1016,59,587,323,851,191,719,455,983,125,653,389,769,505,1033,10,1066,538,274,802,142,670,406,934,76,604,340,868,208,736,472,1e3,43,571,307,835,175,703,439,967,109,637,373,901,241,1041,18,1074,546,282,810,150,678,414,942,84,612,348,876,216,744,480,1008,51,579,315,843,183,711,447,975,117,645,381,909,249,777,513,1058,530,266,794,134,662,398,926,68,596,332,860,200,728,464,992,35,563,299,827,167,695,431,959,101,629,365,893,233,761,497,1025,529,295,823,163,691,427,955,97,625,361,889,229,757,493,1021,64,592,328,856,196,724,460,988,130,658,394,922,262,790,526,1054,31,1087,559,147,675,411,939,81,609,345,873,213,741,477,1005,48,576,312,840,180,708,444,972,114,642,378,906,246,774,510,1038,15,1071,543,279,807,419,947,89,617,353,881,221,749,485,1013,56,584,320,848,188,716,452,980,122,650,386,914,254,782,518,1046,23,1079,551,287,815,155,683,73,601,337,865,205,733,469,997,40,568,304,832,172,700,436,964,106,634,370,898,238,766,502,1030,7,1063,535,271,799,139,667,403,931,357,885,225,753,489,1017,60,588,324,852,192,720,456,984,126,654,390,918,258,786,522,1050,27,1083,555,291,819,159,687,423,951,93,621,209,737,473,1001,44,572,308,836,176,704,440,968,110,638,374,902,242,770,506,1034,11,1067,539,275,803,143,671,407,935,77,605,341,869,481,1009,52,580,316,844,184,712,448,976,118,646,382,910,250,778,514,1042,19,1075,547,283,811,151,679,415,943,85,613,349,877,217,745,36,564,300,828,168,696,432,960,102,630,366,894,234,762,498,1026,1023,1059,531,267,795,135,663,399,927,69,597,333,861,201,729,465,993,326,854,194,722,458,986,128,656,392,920,260,788,524,1052,29,1085,557,293,821,161,689,425,953,95,623,359,887,227,755,491,1019,62,590,178,706,442,970,112,640,376,904,244,772,508,1036,13,1069,541,277,805,145,673,409,937,79,607,343,871,211,739,475,1003,46,574,310,838,450,978,120,648,384,912,252,780,516,1044,21,1077,549,285,813,153,681,417,945,87,615,351,879,219,747,483,1011,54,582,318,846,186,714,104,632,368,896,236,764,500,1028,5,1061,533,269,797,137,665,401,929,71,599,335,863,203,731,467,995,38,566,302,830,170,698,434,962,388,916,256,784,520,1048,25,1081,553,289,817,157,685,421,949,91,619,355,883,223,751,487,1015,58,586,322,850,190,718,454,982,124,652,240,768,504,1032,9,1065,537,273,801,141,669,405,933,75,603,339,867,207,735,471,999,42,570,306,834,174,702,438,966,108,636,372,900,512,1040,17,1073,545,281,809,149,677,413,941,83,611,347,875,215,743,479,1007,50,578,314,842,182,710,446,974,116,644,380,908,248,776,0,1056,528,264,792,132,660,396,924,66,594,330,858,198,726,462,990,33,561,297,825,165,693,429,957,99,627,363,891,231,759,495,3],[2,290,850,150,710,430,990,80,1200,640,360,920,220,780,500,1060,45,1165,605,325,885,185,745,465,1025,115,675,395,955,255,815,535,1095,10,1,859,159,719,439,999,89,1209,649,369,929,229,789,509,1069,54,1174,614,334,894,194,754,474,1034,124,684,404,964,264,824,544,1104,19,1139,579,299,701,421,981,71,1191,631,351,911,211,771,491,1051,36,1156,596,316,876,176,736,456,1016,106,666,386,946,246,806,526,1086,1130,1121,561,281,841,141,1014,104,1224,664,384,944,244,804,524,1084,69,1189,629,349,909,209,769,489,1049,139,699,419,979,279,839,559,1119,34,1154,594,314,874,174,734,454,1207,647,367,927,227,787,507,1067,52,1172,612,332,892,192,752,472,1032,122,682,402,962,262,822,542,1102,17,1137,577,297,857,157,717,437,997,87,376,936,236,796,516,1076,61,1181,621,341,901,201,761,481,1041,131,691,411,971,271,831,551,1111,26,1146,586,306,866,166,726,446,1006,96,1216,656,218,778,498,1058,43,1163,603,323,883,183,743,463,1023,113,673,393,953,253,813,533,1093,8,1128,568,288,848,148,708,428,988,78,1198,638,358,918,520,1080,65,1185,625,345,905,205,765,485,1045,135,695,415,975,275,835,555,1115,30,1150,590,310,870,170,730,450,1010,100,1220,660,380,940,240,800,48,1168,608,328,888,188,748,468,1028,118,678,398,958,258,818,538,1098,13,1133,573,293,853,153,713,433,993,83,1203,643,363,923,223,783,503,1063,617,337,897,197,757,477,1037,127,687,407,967,267,827,547,1107,22,1142,582,302,862,162,722,442,1002,92,1212,652,372,932,232,792,512,1072,57,1177,879,179,739,459,1019,109,669,389,949,249,809,529,1089,4,1124,564,284,844,144,704,424,984,74,1194,634,354,914,214,774,494,1054,39,1159,599,319,767,487,1047,137,697,417,977,277,837,557,1117,32,1152,592,312,872,172,732,452,1012,102,1222,662,382,942,242,802,522,1082,67,1187,627,347,907,207,1030,120,680,400,960,260,820,540,1100,15,1135,575,295,855,155,715,435,995,85,1205,645,365,925,225,785,505,1065,50,1170,610,330,890,190,750,470,689,409,969,269,829,549,1109,24,1144,584,304,864,164,724,444,1004,94,1214,654,374,934,234,794,514,1074,59,1179,619,339,899,199,759,479,1039,129,951,251,811,531,1091,6,1126,566,286,846,146,706,426,986,76,1196,636,356,916,216,776,496,1056,41,1161,601,321,881,181,741,461,1021,111,671,391,833,553,1113,28,1148,588,308,868,168,728,448,1008,98,1218,658,378,938,238,798,518,1078,63,1183,623,343,903,203,763,483,1043,133,693,413,973,273,1096,11,1131,571,291,851,151,711,431,991,81,1201,641,361,921,221,781,501,1061,46,1166,606,326,886,186,746,466,1026,116,676,396,956,256,816,536,1140,580,300,860,160,720,440,1e3,90,1210,650,370,930,230,790,510,1070,55,1175,615,335,895,195,755,475,1035,125,685,405,965,265,825,545,1105,20,282,842,142,702,422,982,72,1192,632,352,912,212,772,492,1052,37,1157,597,317,877,177,737,457,1017,107,667,387,947,247,807,527,1087,570,1122,562,173,733,453,1013,103,1223,663,383,943,243,803,523,1083,68,1188,628,348,908,208,768,488,1048,138,698,418,978,278,838,558,1118,33,1153,593,313,873,436,996,86,1206,646,366,926,226,786,506,1066,51,1171,611,331,891,191,751,471,1031,121,681,401,961,261,821,541,1101,16,1136,576,296,856,156,716,95,1215,655,375,935,235,795,515,1075,60,1180,620,340,900,200,760,480,1040,130,690,410,970,270,830,550,1110,25,1145,585,305,865,165,725,445,1005,637,357,917,217,777,497,1057,42,1162,602,322,882,182,742,462,1022,112,672,392,952,252,812,532,1092,7,1127,567,287,847,147,707,427,987,77,1197,939,239,799,519,1079,64,1184,624,344,904,204,764,484,1044,134,694,414,974,274,834,554,1114,29,1149,589,309,869,169,729,449,1009,99,1219,659,379,782,502,1062,47,1167,607,327,887,187,747,467,1027,117,677,397,957,257,817,537,1097,12,1132,572,292,852,152,712,432,992,82,1202,642,362,922,222,1071,56,1176,616,336,896,196,756,476,1036,126,686,406,966,266,826,546,1106,21,1141,581,301,861,161,721,441,1001,91,1211,651,371,931,231,791,511,1158,598,318,878,178,738,458,1018,108,668,388,948,248,808,528,1088,1085,1123,563,283,843,143,703,423,983,73,1193,633,353,913,213,773,493,1053,38,346,906,206,766,486,1046,136,696,416,976,276,836,556,1116,31,1151,591,311,871,171,731,451,1011,101,1221,661,381,941,241,801,521,1081,66,1186,626,189,749,469,1029,119,679,399,959,259,819,539,1099,14,1134,574,294,854,154,714,434,994,84,1204,644,364,924,224,784,504,1064,49,1169,609,329,889,478,1038,128,688,408,968,268,828,548,1108,23,1143,583,303,863,163,723,443,1003,93,1213,653,373,933,233,793,513,1073,58,1178,618,338,898,198,758,110,670,390,950,250,810,530,1090,5,1125,565,285,845,145,705,425,985,75,1195,635,355,915,215,775,495,1055,40,1160,600,320,880,180,740,460,1020,412,972,272,832,552,1112,27,1147,587,307,867,167,727,447,1007,97,1217,657,377,937,237,797,517,1077,62,1182,622,342,902,202,762,482,1042,132,692,254,814,534,1094,9,1129,569,289,849,149,709,429,989,79,1199,639,359,919,219,779,499,1059,44,1164,604,324,884,184,744,464,1024,114,674,394,954,543,1103,18,1138,578,298,858,158,718,438,998,88,1208,648,368,928,228,788,508,1068,53,1173,613,333,893,193,753,473,1033,123,683,403,963,263,823,0,1120,560,280,840,140,700,420,980,70,1190,630,350,910,210,770,490,1050,35,1155,595,315,875,175,735,455,1015,105,665,385,945,245,805,525,3],[2,302,894,154,1338,746,450,1042,80,1264,672,376,968,228,820,524,1116,43,1227,635,339,931,191,783,487,1079,117,1301,709,413,1005,265,857,561,1153,6,1,917,177,1361,769,473,1065,103,1287,695,399,991,251,843,547,1139,66,1250,658,362,954,214,806,510,1102,140,1324,732,436,1028,288,880,584,1176,29,1213,621,325,1343,751,455,1047,85,1269,677,381,973,233,825,529,1121,48,1232,640,344,936,196,788,492,1084,122,1306,714,418,1010,270,862,566,1158,11,1195,603,307,899,159,464,1056,94,1278,686,390,982,242,834,538,1130,57,1241,649,353,945,205,797,501,1093,131,1315,723,427,1019,279,871,575,1167,20,1204,612,316,908,168,1352,760,75,1259,667,371,963,223,815,519,1111,38,1222,630,334,926,186,778,482,1074,112,1296,704,408,1e3,260,852,556,1148,1190,1185,593,297,889,149,1333,741,445,1037,702,406,998,258,850,554,1146,73,1257,665,369,961,221,813,517,1109,147,1331,739,443,1035,295,887,591,1183,36,1220,628,332,924,184,1368,776,480,1072,110,1294,980,240,832,536,1128,55,1239,647,351,943,203,795,499,1091,129,1313,721,425,1017,277,869,573,1165,18,1202,610,314,906,166,1350,758,462,1054,92,1276,684,388,841,545,1137,64,1248,656,360,952,212,804,508,1100,138,1322,730,434,1026,286,878,582,1174,27,1211,619,323,915,175,1359,767,471,1063,101,1285,693,397,989,249,1119,46,1230,638,342,934,194,786,490,1082,120,1304,712,416,1008,268,860,564,1156,9,1193,601,305,897,157,1341,749,453,1045,83,1267,675,379,971,231,823,527,1253,661,365,957,217,809,513,1105,143,1327,735,439,1031,291,883,587,1179,32,1216,624,328,920,180,1364,772,476,1068,106,1290,698,402,994,254,846,550,1142,69,347,939,199,791,495,1087,125,1309,717,421,1013,273,865,569,1161,14,1198,606,310,902,162,1346,754,458,1050,88,1272,680,384,976,236,828,532,1124,51,1235,643,208,800,504,1096,134,1318,726,430,1022,282,874,578,1170,23,1207,615,319,911,171,1355,763,467,1059,97,1281,689,393,985,245,837,541,1133,60,1244,652,356,948,485,1077,115,1299,707,411,1003,263,855,559,1151,4,1188,596,300,892,152,1336,744,448,1040,78,1262,670,374,966,226,818,522,1114,41,1225,633,337,929,189,781,145,1329,737,441,1033,293,885,589,1181,34,1218,626,330,922,182,1366,774,478,1070,108,1292,700,404,996,256,848,552,1144,71,1255,663,367,959,219,811,515,1107,719,423,1015,275,867,571,1163,16,1200,608,312,904,164,1348,756,460,1052,90,1274,682,386,978,238,830,534,1126,53,1237,645,349,941,201,793,497,1089,127,1311,1024,284,876,580,1172,25,1209,617,321,913,173,1357,765,469,1061,99,1283,691,395,987,247,839,543,1135,62,1246,654,358,950,210,802,506,1098,136,1320,728,432,858,562,1154,7,1191,599,303,895,155,1339,747,451,1043,81,1265,673,377,969,229,821,525,1117,44,1228,636,340,932,192,784,488,1080,118,1302,710,414,1006,266,1177,30,1214,622,326,918,178,1362,770,474,1066,104,1288,696,400,992,252,844,548,1140,67,1251,659,363,955,215,807,511,1103,141,1325,733,437,1029,289,881,585,1196,604,308,900,160,1344,752,456,1048,86,1270,678,382,974,234,826,530,1122,49,1233,641,345,937,197,789,493,1085,123,1307,715,419,1011,271,863,567,1159,12,317,909,169,1353,761,465,1057,95,1279,687,391,983,243,835,539,1131,58,1242,650,354,946,206,798,502,1094,132,1316,724,428,1020,280,872,576,1168,21,1205,613,150,1334,742,446,1038,76,1260,668,372,964,224,816,520,1112,39,1223,631,335,927,187,779,483,1075,113,1297,705,409,1001,261,853,557,1149,598,1186,594,298,890,775,479,1071,109,1293,701,405,997,257,849,553,1145,72,1256,664,368,960,220,812,516,1108,146,1330,738,442,1034,294,886,590,1182,35,1219,627,331,923,183,1367,1053,91,1275,683,387,979,239,831,535,1127,54,1238,646,350,942,202,794,498,1090,128,1312,720,424,1016,276,868,572,1164,17,1201,609,313,905,165,1349,757,461,1284,692,396,988,248,840,544,1136,63,1247,655,359,951,211,803,507,1099,137,1321,729,433,1025,285,877,581,1173,26,1210,618,322,914,174,1358,766,470,1062,100,378,970,230,822,526,1118,45,1229,637,341,933,193,785,489,1081,119,1303,711,415,1007,267,859,563,1155,8,1192,600,304,896,156,1340,748,452,1044,82,1266,674,253,845,549,1141,68,1252,660,364,956,216,808,512,1104,142,1326,734,438,1030,290,882,586,1178,31,1215,623,327,919,179,1363,771,475,1067,105,1289,697,401,993,531,1123,50,1234,642,346,938,198,790,494,1086,124,1308,716,420,1012,272,864,568,1160,13,1197,605,309,901,161,1345,753,457,1049,87,1271,679,383,975,235,827,59,1243,651,355,947,207,799,503,1095,133,1317,725,429,1021,281,873,577,1169,22,1206,614,318,910,170,1354,762,466,1058,96,1280,688,392,984,244,836,540,1132,632,336,928,188,780,484,1076,114,1298,706,410,1002,262,854,558,1150,1147,1187,595,299,891,151,1335,743,447,1039,77,1261,669,373,965,225,817,521,1113,40,1224,958,218,810,514,1106,144,1328,736,440,1032,292,884,588,1180,33,1217,625,329,921,181,1365,773,477,1069,107,1291,699,403,995,255,847,551,1143,70,1254,662,366,792,496,1088,126,1310,718,422,1014,274,866,570,1162,15,1199,607,311,903,163,1347,755,459,1051,89,1273,681,385,977,237,829,533,1125,52,1236,644,348,940,200,1097,135,1319,727,431,1023,283,875,579,1171,24,1208,616,320,912,172,1356,764,468,1060,98,1282,690,394,986,246,838,542,1134,61,1245,653,357,949,209,801,505,1300,708,412,1004,264,856,560,1152,5,1189,597,301,893,153,1337,745,449,1041,79,1263,671,375,967,227,819,523,1115,42,1226,634,338,930,190,782,486,1078,116,435,1027,287,879,583,1175,28,1212,620,324,916,176,1360,768,472,1064,102,1286,694,398,990,250,842,546,1138,65,1249,657,361,953,213,805,509,1101,139,1323,731,269,861,565,1157,10,1194,602,306,898,158,1342,750,454,1046,84,1268,676,380,972,232,824,528,1120,47,1231,639,343,935,195,787,491,1083,121,1305,713,417,1009,574,1166,19,1203,611,315,907,167,1351,759,463,1055,93,1277,685,389,981,241,833,537,1129,56,1240,648,352,944,204,796,500,1092,130,1314,722,426,1018,278,870,0,1184,592,296,888,148,1332,740,444,1036,74,1258,666,370,962,222,814,518,1110,37,1221,629,333,925,185,777,481,1073,111,1295,703,407,999,259,851,555,3],[2,328,952,172,1420,796,484,1108,94,1342,718,406,1030,250,1498,874,562,1186,55,1303,679,367,991,211,1459,835,523,1147,133,1381,757,445,1069,289,913,601,1225,16,1,962,182,1430,806,494,1118,104,1352,728,416,1040,260,1508,884,572,1196,65,1313,689,377,1001,221,1469,845,533,1157,143,1391,767,455,1079,299,923,611,1235,26,1274,650,338,1410,786,474,1098,84,1332,708,396,1020,240,1488,864,552,1176,45,1293,669,357,981,201,1449,825,513,1137,123,1371,747,435,1059,279,903,591,1215,6,1254,630,318,942,162,499,1123,109,1357,733,421,1045,265,1513,889,577,1201,70,1318,694,382,1006,226,1474,850,538,1162,148,1396,772,460,1084,304,928,616,1240,31,1279,655,343,967,187,1435,811,89,1337,713,401,1025,245,1493,869,557,1181,50,1298,674,362,986,206,1454,830,518,1142,128,1376,752,440,1064,284,908,596,1220,11,1259,635,323,947,167,1415,791,479,1103,723,411,1035,255,1503,879,567,1191,60,1308,684,372,996,216,1464,840,528,1152,138,1386,762,450,1074,294,918,606,1230,21,1269,645,333,957,177,1425,801,489,1113,99,1347,1015,235,1483,859,547,1171,40,1288,664,352,976,196,1444,820,508,1132,118,1366,742,430,1054,274,898,586,1210,1264,1249,625,313,937,157,1405,781,469,1093,79,1327,703,391,1520,896,584,1208,77,1325,701,389,1013,233,1481,857,545,1169,155,1403,779,467,1091,311,935,623,1247,38,1286,662,350,974,194,1442,818,506,1130,116,1364,740,428,1052,272,565,1189,58,1306,682,370,994,214,1462,838,526,1150,136,1384,760,448,1072,292,916,604,1228,19,1267,643,331,955,175,1423,799,487,1111,97,1345,721,409,1033,253,1501,877,68,1316,692,380,1004,224,1472,848,536,1160,146,1394,770,458,1082,302,926,614,1238,29,1277,653,341,965,185,1433,809,497,1121,107,1355,731,419,1043,263,1511,887,575,1199,672,360,984,204,1452,828,516,1140,126,1374,750,438,1062,282,906,594,1218,9,1257,633,321,945,165,1413,789,477,1101,87,1335,711,399,1023,243,1491,867,555,1179,48,1296,1009,229,1477,853,541,1165,151,1399,775,463,1087,307,931,619,1243,34,1282,658,346,970,190,1438,814,502,1126,112,1360,736,424,1048,268,1516,892,580,1204,73,1321,697,385,1457,833,521,1145,131,1379,755,443,1067,287,911,599,1223,14,1262,638,326,950,170,1418,794,482,1106,92,1340,716,404,1028,248,1496,872,560,1184,53,1301,677,365,989,209,531,1155,141,1389,765,453,1077,297,921,609,1233,24,1272,648,336,960,180,1428,804,492,1116,102,1350,726,414,1038,258,1506,882,570,1194,63,1311,687,375,999,219,1467,843,121,1369,745,433,1057,277,901,589,1213,4,1252,628,316,940,160,1408,784,472,1096,82,1330,706,394,1018,238,1486,862,550,1174,43,1291,667,355,979,199,1447,823,511,1135,777,465,1089,309,933,621,1245,36,1284,660,348,972,192,1440,816,504,1128,114,1362,738,426,1050,270,1518,894,582,1206,75,1323,699,387,1011,231,1479,855,543,1167,153,1401,1070,290,914,602,1226,17,1265,641,329,953,173,1421,797,485,1109,95,1343,719,407,1031,251,1499,875,563,1187,56,1304,680,368,992,212,1460,836,524,1148,134,1382,758,446,924,612,1236,27,1275,651,339,963,183,1431,807,495,1119,105,1353,729,417,1041,261,1509,885,573,1197,66,1314,690,378,1002,222,1470,846,534,1158,144,1392,768,456,1080,300,1216,7,1255,631,319,943,163,1411,787,475,1099,85,1333,709,397,1021,241,1489,865,553,1177,46,1294,670,358,982,202,1450,826,514,1138,124,1372,748,436,1060,280,904,592,1280,656,344,968,188,1436,812,500,1124,110,1358,734,422,1046,266,1514,890,578,1202,71,1319,695,383,1007,227,1475,851,539,1163,149,1397,773,461,1085,305,929,617,1241,32,324,948,168,1416,792,480,1104,90,1338,714,402,1026,246,1494,870,558,1182,51,1299,675,363,987,207,1455,831,519,1143,129,1377,753,441,1065,285,909,597,1221,12,1260,636,178,1426,802,490,1114,100,1348,724,412,1036,256,1504,880,568,1192,61,1309,685,373,997,217,1465,841,529,1153,139,1387,763,451,1075,295,919,607,1231,22,1270,646,334,958,782,470,1094,80,1328,704,392,1016,236,1484,860,548,1172,41,1289,665,353,977,197,1445,821,509,1133,119,1367,743,431,1055,275,899,587,1211,640,1250,626,314,938,158,1406,1129,115,1363,739,427,1051,271,1519,895,583,1207,76,1324,700,388,1012,232,1480,856,544,1168,154,1402,778,466,1090,310,934,622,1246,37,1285,661,349,973,193,1441,817,505,1344,720,408,1032,252,1500,876,564,1188,57,1305,681,369,993,213,1461,837,525,1149,135,1383,759,447,1071,291,915,603,1227,18,1266,642,330,954,174,1422,798,486,1110,96,418,1042,262,1510,886,574,1198,67,1315,691,379,1003,223,1471,847,535,1159,145,1393,769,457,1081,301,925,613,1237,28,1276,652,340,964,184,1432,808,496,1120,106,1354,730,242,1490,866,554,1178,47,1295,671,359,983,203,1451,827,515,1139,125,1373,749,437,1061,281,905,593,1217,8,1256,632,320,944,164,1412,788,476,1100,86,1334,710,398,1022,891,579,1203,72,1320,696,384,1008,228,1476,852,540,1164,150,1398,774,462,1086,306,930,618,1242,33,1281,657,345,969,189,1437,813,501,1125,111,1359,735,423,1047,267,1515,1183,52,1300,676,364,988,208,1456,832,520,1144,130,1378,754,442,1066,286,910,598,1222,13,1261,637,325,949,169,1417,793,481,1105,91,1339,715,403,1027,247,1495,871,559,1310,686,374,998,218,1466,842,530,1154,140,1388,764,452,1076,296,920,608,1232,23,1271,647,335,959,179,1427,803,491,1115,101,1349,725,413,1037,257,1505,881,569,1193,62,354,978,198,1446,822,510,1134,120,1368,744,432,1056,276,900,588,1212,1209,1251,627,315,939,159,1407,783,471,1095,81,1329,705,393,1017,237,1485,861,549,1173,42,1290,666,230,1478,854,542,1166,152,1400,776,464,1088,308,932,620,1244,35,1283,659,347,971,191,1439,815,503,1127,113,1361,737,425,1049,269,1517,893,581,1205,74,1322,698,386,1010,834,522,1146,132,1380,756,444,1068,288,912,600,1224,15,1263,639,327,951,171,1419,795,483,1107,93,1341,717,405,1029,249,1497,873,561,1185,54,1302,678,366,990,210,1458,1156,142,1390,766,454,1078,298,922,610,1234,25,1273,649,337,961,181,1429,805,493,1117,103,1351,727,415,1039,259,1507,883,571,1195,64,1312,688,376,1e3,220,1468,844,532,1370,746,434,1058,278,902,590,1214,5,1253,629,317,941,161,1409,785,473,1097,83,1331,707,395,1019,239,1487,863,551,1175,44,1292,668,356,980,200,1448,824,512,1136,122,459,1083,303,927,615,1239,30,1278,654,342,966,186,1434,810,498,1122,108,1356,732,420,1044,264,1512,888,576,1200,69,1317,693,381,1005,225,1473,849,537,1161,147,1395,771,283,907,595,1219,10,1258,634,322,946,166,1414,790,478,1102,88,1336,712,400,1024,244,1492,868,556,1180,49,1297,673,361,985,205,1453,829,517,1141,127,1375,751,439,1063,605,1229,20,1268,644,332,956,176,1424,800,488,1112,98,1346,722,410,1034,254,1502,878,566,1190,59,1307,683,371,995,215,1463,839,527,1151,137,1385,761,449,1073,293,917,0,1248,624,312,936,156,1404,780,468,1092,78,1326,702,390,1014,234,1482,858,546,1170,39,1287,663,351,975,195,1443,819,507,1131,117,1365,741,429,1053,273,897,585,3],[2,332,1644,988,168,1480,824,496,1152,86,1398,742,414,1070,250,1562,906,578,1234,45,1357,701,373,1029,209,1521,865,537,1193,127,1439,783,455,1111,291,1603,947,619,1275,4,1,1677,1021,201,1513,857,529,1185,119,1431,775,447,1103,283,1595,939,611,1267,78,1390,734,406,1062,242,1554,898,570,1226,160,1472,816,488,1144,324,1636,980,652,1308,37,1349,693,365,181,1493,837,509,1165,99,1411,755,427,1083,263,1575,919,591,1247,58,1370,714,386,1042,222,1534,878,550,1206,140,1452,796,468,1124,304,1616,960,632,1288,17,1329,673,345,1657,1001,847,519,1175,109,1421,765,437,1093,273,1585,929,601,1257,68,1380,724,396,1052,232,1544,888,560,1216,150,1462,806,478,1134,314,1626,970,642,1298,27,1339,683,355,1667,1011,191,1503,1155,89,1401,745,417,1073,253,1565,909,581,1237,48,1360,704,376,1032,212,1524,868,540,1196,130,1442,786,458,1114,294,1606,950,622,1278,7,1319,663,335,1647,991,171,1483,827,499,1426,770,442,1098,278,1590,934,606,1262,73,1385,729,401,1057,237,1549,893,565,1221,155,1467,811,483,1139,319,1631,975,647,1303,32,1344,688,360,1672,1016,196,1508,852,524,1180,114,422,1078,258,1570,914,586,1242,53,1365,709,381,1037,217,1529,873,545,1201,135,1447,791,463,1119,299,1611,955,627,1283,12,1324,668,340,1652,996,176,1488,832,504,1160,94,1406,750,268,1580,924,596,1252,63,1375,719,391,1047,227,1539,883,555,1211,145,1457,801,473,1129,309,1621,965,637,1293,22,1334,678,350,1662,1006,186,1498,842,514,1170,104,1416,760,432,1088,903,575,1231,42,1354,698,370,1026,206,1518,862,534,1190,124,1436,780,452,1108,288,1600,944,616,1272,1316,1313,657,329,1641,985,165,1477,821,493,1149,83,1395,739,411,1067,247,1559,1270,81,1393,737,409,1065,245,1557,901,573,1229,163,1475,819,491,1147,327,1639,983,655,1311,40,1352,696,368,1680,1024,204,1516,860,532,1188,122,1434,778,450,1106,286,1598,942,614,1373,717,389,1045,225,1537,881,553,1209,143,1455,799,471,1127,307,1619,963,635,1291,20,1332,676,348,1660,1004,184,1496,840,512,1168,102,1414,758,430,1086,266,1578,922,594,1250,61,399,1055,235,1547,891,563,1219,153,1465,809,481,1137,317,1629,973,645,1301,30,1342,686,358,1670,1014,194,1506,850,522,1178,112,1424,768,440,1096,276,1588,932,604,1260,71,1383,727,215,1527,871,543,1199,133,1445,789,461,1117,297,1609,953,625,1281,10,1322,666,338,1650,994,174,1486,830,502,1158,92,1404,748,420,1076,256,1568,912,584,1240,51,1363,707,379,1035,896,568,1224,158,1470,814,486,1142,322,1634,978,650,1306,35,1347,691,363,1675,1019,199,1511,855,527,1183,117,1429,773,445,1101,281,1593,937,609,1265,76,1388,732,404,1060,240,1552,1204,138,1450,794,466,1122,302,1614,958,630,1286,15,1327,671,343,1655,999,179,1491,835,507,1163,97,1409,753,425,1081,261,1573,917,589,1245,56,1368,712,384,1040,220,1532,876,548,1460,804,476,1132,312,1624,968,640,1296,25,1337,681,353,1665,1009,189,1501,845,517,1173,107,1419,763,435,1091,271,1583,927,599,1255,66,1378,722,394,1050,230,1542,886,558,1214,148,456,1112,292,1604,948,620,1276,5,1317,661,333,1645,989,169,1481,825,497,1153,87,1399,743,415,1071,251,1563,907,579,1235,46,1358,702,374,1030,210,1522,866,538,1194,128,1440,784,325,1637,981,653,1309,38,1350,694,366,1678,1022,202,1514,858,530,1186,120,1432,776,448,1104,284,1596,940,612,1268,79,1391,735,407,1063,243,1555,899,571,1227,161,1473,817,489,1145,961,633,1289,18,1330,674,346,1658,1002,182,1494,838,510,1166,100,1412,756,428,1084,264,1576,920,592,1248,59,1371,715,387,1043,223,1535,879,551,1207,141,1453,797,469,1125,305,1617,1299,28,1340,684,356,1668,1012,192,1504,848,520,1176,110,1422,766,438,1094,274,1586,930,602,1258,69,1381,725,397,1053,233,1545,889,561,1217,151,1463,807,479,1135,315,1627,971,643,1320,664,336,1648,992,172,1484,828,500,1156,90,1402,746,418,1074,254,1566,910,582,1238,49,1361,705,377,1033,213,1525,869,541,1197,131,1443,787,459,1115,295,1607,951,623,1279,8,361,1673,1017,197,1509,853,525,1181,115,1427,771,443,1099,279,1591,935,607,1263,74,1386,730,402,1058,238,1550,894,566,1222,156,1468,812,484,1140,320,1632,976,648,1304,33,1345,689,997,177,1489,833,505,1161,95,1407,751,423,1079,259,1571,915,587,1243,54,1366,710,382,1038,218,1530,874,546,1202,136,1448,792,464,1120,300,1612,956,628,1284,13,1325,669,341,1653,1499,843,515,1171,105,1417,761,433,1089,269,1581,925,597,1253,64,1376,720,392,1048,228,1540,884,556,1212,146,1458,802,474,1130,310,1622,966,638,1294,23,1335,679,351,1663,1007,187,494,1150,84,1396,740,412,1068,248,1560,904,576,1232,43,1355,699,371,1027,207,1519,863,535,1191,125,1437,781,453,1109,289,1601,945,617,1273,660,1314,658,330,1642,986,166,1478,822,121,1433,777,449,1105,285,1597,941,613,1269,80,1392,736,408,1064,244,1556,900,572,1228,162,1474,818,490,1146,326,1638,982,654,1310,39,1351,695,367,1679,1023,203,1515,859,531,1187,757,429,1085,265,1577,921,593,1249,60,1372,716,388,1044,224,1536,880,552,1208,142,1454,798,470,1126,306,1618,962,634,1290,19,1331,675,347,1659,1003,183,1495,839,511,1167,101,1413,1095,275,1587,931,603,1259,70,1382,726,398,1054,234,1546,890,562,1218,152,1464,808,480,1136,316,1628,972,644,1300,29,1341,685,357,1669,1013,193,1505,849,521,1177,111,1423,767,439,1567,911,583,1239,50,1362,706,378,1034,214,1526,870,542,1198,132,1444,788,460,1116,296,1608,952,624,1280,9,1321,665,337,1649,993,173,1485,829,501,1157,91,1403,747,419,1075,255,608,1264,75,1387,731,403,1059,239,1551,895,567,1223,157,1469,813,485,1141,321,1633,977,649,1305,34,1346,690,362,1674,1018,198,1510,854,526,1182,116,1428,772,444,1100,280,1592,936,55,1367,711,383,1039,219,1531,875,547,1203,137,1449,793,465,1121,301,1613,957,629,1285,14,1326,670,342,1654,998,178,1490,834,506,1162,96,1408,752,424,1080,260,1572,916,588,1244,721,393,1049,229,1541,885,557,1213,147,1459,803,475,1131,311,1623,967,639,1295,24,1336,680,352,1664,1008,188,1500,844,516,1172,106,1418,762,434,1090,270,1582,926,598,1254,65,1377,1028,208,1520,864,536,1192,126,1438,782,454,1110,290,1602,946,618,1274,1271,1315,659,331,1643,987,167,1479,823,495,1151,85,1397,741,413,1069,249,1561,905,577,1233,44,1356,700,372,1553,897,569,1225,159,1471,815,487,1143,323,1635,979,651,1307,36,1348,692,364,1676,1020,200,1512,856,528,1184,118,1430,774,446,1102,282,1594,938,610,1266,77,1389,733,405,1061,241,549,1205,139,1451,795,467,1123,303,1615,959,631,1287,16,1328,672,344,1656,1e3,180,1492,836,508,1164,98,1410,754,426,1082,262,1574,918,590,1246,57,1369,713,385,1041,221,1533,877,149,1461,805,477,1133,313,1625,969,641,1297,26,1338,682,354,1666,1010,190,1502,846,518,1174,108,1420,764,436,1092,272,1584,928,600,1256,67,1379,723,395,1051,231,1543,887,559,1215,785,457,1113,293,1605,949,621,1277,6,1318,662,334,1646,990,170,1482,826,498,1154,88,1400,744,416,1072,252,1564,908,580,1236,47,1359,703,375,1031,211,1523,867,539,1195,129,1441,1138,318,1630,974,646,1302,31,1343,687,359,1671,1015,195,1507,851,523,1179,113,1425,769,441,1097,277,1589,933,605,1261,72,1384,728,400,1056,236,1548,892,564,1220,154,1466,810,482,1610,954,626,1282,11,1323,667,339,1651,995,175,1487,831,503,1159,93,1405,749,421,1077,257,1569,913,585,1241,52,1364,708,380,1036,216,1528,872,544,1200,134,1446,790,462,1118,298,636,1292,21,1333,677,349,1661,1005,185,1497,841,513,1169,103,1415,759,431,1087,267,1579,923,595,1251,62,1374,718,390,1046,226,1538,882,554,1210,144,1456,800,472,1128,308,1620,964,0,1312,656,328,1640,984,164,1476,820,492,1148,82,1394,738,410,1066,246,1558,902,574,1230,41,1353,697,369,1025,205,1517,861,533,1189,123,1435,779,451,1107,287,1599,943,615,3],[2,359,1735,1047,187,1563,875,531,1219,101,1477,789,445,1821,1133,273,1649,961,617,1305,58,1434,746,402,1778,1090,230,1606,918,574,1262,144,1520,832,488,1176,316,1692,1004,660,1348,15,1,1746,1058,198,1574,886,542,1230,112,1488,800,456,1832,1144,284,1660,972,628,1316,69,1445,757,413,1789,1101,241,1617,929,585,1273,155,1531,843,499,1187,327,1703,1015,671,1359,26,1402,714,370,176,1552,864,520,1208,90,1466,778,434,1810,1122,262,1638,950,606,1294,47,1423,735,391,1767,1079,219,1595,907,563,1251,133,1509,821,477,1165,305,1681,993,649,1337,4,1380,692,348,1724,1036,899,555,1243,125,1501,813,469,1845,1157,297,1673,985,641,1329,82,1458,770,426,1802,1114,254,1630,942,598,1286,168,1544,856,512,1200,340,1716,1028,684,1372,39,1415,727,383,1759,1071,211,1587,1222,104,1480,792,448,1824,1136,276,1652,964,620,1308,61,1437,749,405,1781,1093,233,1609,921,577,1265,147,1523,835,491,1179,319,1695,1007,663,1351,18,1394,706,362,1738,1050,190,1566,878,534,1491,803,459,1835,1147,287,1663,975,631,1319,72,1448,760,416,1792,1104,244,1620,932,588,1276,158,1534,846,502,1190,330,1706,1018,674,1362,29,1405,717,373,1749,1061,201,1577,889,545,1233,115,437,1813,1125,265,1641,953,609,1297,50,1426,738,394,1770,1082,222,1598,910,566,1254,136,1512,824,480,1168,308,1684,996,652,1340,7,1383,695,351,1727,1039,179,1555,867,523,1211,93,1469,781,1152,292,1668,980,636,1324,77,1453,765,421,1797,1109,249,1625,937,593,1281,163,1539,851,507,1195,335,1711,1023,679,1367,34,1410,722,378,1754,1066,206,1582,894,550,1238,120,1496,808,464,1840,1646,958,614,1302,55,1431,743,399,1775,1087,227,1603,915,571,1259,141,1517,829,485,1173,313,1689,1001,657,1345,12,1388,700,356,1732,1044,184,1560,872,528,1216,98,1474,786,442,1818,1130,270,625,1313,66,1442,754,410,1786,1098,238,1614,926,582,1270,152,1528,840,496,1184,324,1700,1012,668,1356,23,1399,711,367,1743,1055,195,1571,883,539,1227,109,1485,797,453,1829,1141,281,1657,969,44,1420,732,388,1764,1076,216,1592,904,560,1248,130,1506,818,474,1162,302,1678,990,646,1334,1391,1377,689,345,1721,1033,173,1549,861,517,1205,87,1463,775,431,1807,1119,259,1635,947,603,1291,773,429,1805,1117,257,1633,945,601,1289,171,1547,859,515,1203,343,1719,1031,687,1375,42,1418,730,386,1762,1074,214,1590,902,558,1246,128,1504,816,472,1848,1160,300,1676,988,644,1332,85,1461,1784,1096,236,1612,924,580,1268,150,1526,838,494,1182,322,1698,1010,666,1354,21,1397,709,365,1741,1053,193,1569,881,537,1225,107,1483,795,451,1827,1139,279,1655,967,623,1311,64,1440,752,408,247,1623,935,591,1279,161,1537,849,505,1193,333,1709,1021,677,1365,32,1408,720,376,1752,1064,204,1580,892,548,1236,118,1494,806,462,1838,1150,290,1666,978,634,1322,75,1451,763,419,1795,1107,913,569,1257,139,1515,827,483,1171,311,1687,999,655,1343,10,1386,698,354,1730,1042,182,1558,870,526,1214,96,1472,784,440,1816,1128,268,1644,956,612,1300,53,1429,741,397,1773,1085,225,1601,1284,166,1542,854,510,1198,338,1714,1026,682,1370,37,1413,725,381,1757,1069,209,1585,897,553,1241,123,1499,811,467,1843,1155,295,1671,983,639,1327,80,1456,768,424,1800,1112,252,1628,940,596,1521,833,489,1177,317,1693,1005,661,1349,16,1392,704,360,1736,1048,188,1564,876,532,1220,102,1478,790,446,1822,1134,274,1650,962,618,1306,59,1435,747,403,1779,1091,231,1607,919,575,1263,145,500,1188,328,1704,1016,672,1360,27,1403,715,371,1747,1059,199,1575,887,543,1231,113,1489,801,457,1833,1145,285,1661,973,629,1317,70,1446,758,414,1790,1102,242,1618,930,586,1274,156,1532,844,306,1682,994,650,1338,5,1381,693,349,1725,1037,177,1553,865,521,1209,91,1467,779,435,1811,1123,263,1639,951,607,1295,48,1424,736,392,1768,1080,220,1596,908,564,1252,134,1510,822,478,1166,1029,685,1373,40,1416,728,384,1760,1072,212,1588,900,556,1244,126,1502,814,470,1846,1158,298,1674,986,642,1330,83,1459,771,427,1803,1115,255,1631,943,599,1287,169,1545,857,513,1201,341,1717,1352,19,1395,707,363,1739,1051,191,1567,879,535,1223,105,1481,793,449,1825,1137,277,1653,965,621,1309,62,1438,750,406,1782,1094,234,1610,922,578,1266,148,1524,836,492,1180,320,1696,1008,664,1406,718,374,1750,1062,202,1578,890,546,1234,116,1492,804,460,1836,1148,288,1664,976,632,1320,73,1449,761,417,1793,1105,245,1621,933,589,1277,159,1535,847,503,1191,331,1707,1019,675,1363,30,352,1728,1040,180,1556,868,524,1212,94,1470,782,438,1814,1126,266,1642,954,610,1298,51,1427,739,395,1771,1083,223,1599,911,567,1255,137,1513,825,481,1169,309,1685,997,653,1341,8,1384,696,1067,207,1583,895,551,1239,121,1497,809,465,1841,1153,293,1669,981,637,1325,78,1454,766,422,1798,1110,250,1626,938,594,1282,164,1540,852,508,1196,336,1712,1024,680,1368,35,1411,723,379,1755,1561,873,529,1217,99,1475,787,443,1819,1131,271,1647,959,615,1303,56,1432,744,400,1776,1088,228,1604,916,572,1260,142,1518,830,486,1174,314,1690,1002,658,1346,13,1389,701,357,1733,1045,185,540,1228,110,1486,798,454,1830,1142,282,1658,970,626,1314,67,1443,755,411,1787,1099,239,1615,927,583,1271,153,1529,841,497,1185,325,1701,1013,669,1357,24,1400,712,368,1744,1056,196,1572,884,88,1464,776,432,1808,1120,260,1636,948,604,1292,45,1421,733,389,1765,1077,217,1593,905,561,1249,131,1507,819,475,1163,303,1679,991,647,1335,703,1378,690,346,1722,1034,174,1550,862,518,1206,815,471,1847,1159,299,1675,987,643,1331,84,1460,772,428,1804,1116,256,1632,944,600,1288,170,1546,858,514,1202,342,1718,1030,686,1374,41,1417,729,385,1761,1073,213,1589,901,557,1245,127,1503,1826,1138,278,1654,966,622,1310,63,1439,751,407,1783,1095,235,1611,923,579,1267,149,1525,837,493,1181,321,1697,1009,665,1353,20,1396,708,364,1740,1052,192,1568,880,536,1224,106,1482,794,450,289,1665,977,633,1321,74,1450,762,418,1794,1106,246,1622,934,590,1278,160,1536,848,504,1192,332,1708,1020,676,1364,31,1407,719,375,1751,1063,203,1579,891,547,1235,117,1493,805,461,1837,1149,955,611,1299,52,1428,740,396,1772,1084,224,1600,912,568,1256,138,1514,826,482,1170,310,1686,998,654,1342,9,1385,697,353,1729,1041,181,1557,869,525,1213,95,1471,783,439,1815,1127,267,1643,1326,79,1455,767,423,1799,1111,251,1627,939,595,1283,165,1541,853,509,1197,337,1713,1025,681,1369,36,1412,724,380,1756,1068,208,1584,896,552,1240,122,1498,810,466,1842,1154,294,1670,982,638,1433,745,401,1777,1089,229,1605,917,573,1261,143,1519,831,487,1175,315,1691,1003,659,1347,14,1390,702,358,1734,1046,186,1562,874,530,1218,100,1476,788,444,1820,1132,272,1648,960,616,1304,57,412,1788,1100,240,1616,928,584,1272,154,1530,842,498,1186,326,1702,1014,670,1358,25,1401,713,369,1745,1057,197,1573,885,541,1229,111,1487,799,455,1831,1143,283,1659,971,627,1315,68,1444,756,1078,218,1594,906,562,1250,132,1508,820,476,1164,304,1680,992,648,1336,1333,1379,691,347,1723,1035,175,1551,863,519,1207,89,1465,777,433,1809,1121,261,1637,949,605,1293,46,1422,734,390,1766,1629,941,597,1285,167,1543,855,511,1199,339,1715,1027,683,1371,38,1414,726,382,1758,1070,210,1586,898,554,1242,124,1500,812,468,1844,1156,296,1672,984,640,1328,81,1457,769,425,1801,1113,253,576,1264,146,1522,834,490,1178,318,1694,1006,662,1350,17,1393,705,361,1737,1049,189,1565,877,533,1221,103,1479,791,447,1823,1135,275,1651,963,619,1307,60,1436,748,404,1780,1092,232,1608,920,157,1533,845,501,1189,329,1705,1017,673,1361,28,1404,716,372,1748,1060,200,1576,888,544,1232,114,1490,802,458,1834,1146,286,1662,974,630,1318,71,1447,759,415,1791,1103,243,1619,931,587,1275,823,479,1167,307,1683,995,651,1339,6,1382,694,350,1726,1038,178,1554,866,522,1210,92,1468,780,436,1812,1124,264,1640,952,608,1296,49,1425,737,393,1769,1081,221,1597,909,565,1253,135,1511,1194,334,1710,1022,678,1366,33,1409,721,377,1753,1065,205,1581,893,549,1237,119,1495,807,463,1839,1151,291,1667,979,635,1323,76,1452,764,420,1796,1108,248,1624,936,592,1280,162,1538,850,506,1688,1e3,656,1344,11,1387,699,355,1731,1043,183,1559,871,527,1215,97,1473,785,441,1817,1129,269,1645,957,613,1301,54,1430,742,398,1774,1086,226,1602,914,570,1258,140,1516,828,484,1172,312,667,1355,22,1398,710,366,1742,1054,194,1570,882,538,1226,108,1484,796,452,1828,1140,280,1656,968,624,1312,65,1441,753,409,1785,1097,237,1613,925,581,1269,151,1527,839,495,1183,323,1699,1011,0,1376,688,344,1720,1032,172,1548,860,516,1204,86,1462,774,430,1806,1118,258,1634,946,602,1290,43,1419,731,387,1763,1075,215,1591,903,559,1247,129,1505,817,473,1161,301,1677,989,645,3],[2,370,1810,1090,190,1630,910,550,1990,1270,100,1540,820,460,1900,1180,280,1720,1e3,640,1360,55,1495,775,415,1855,1135,235,1675,955,595,1315,145,1585,865,505,1945,1225,325,1765,1045,685,1405,10,1,1838,1118,218,1658,938,578,2018,1298,128,1568,848,488,1928,1208,308,1748,1028,668,1388,83,1523,803,443,1883,1163,263,1703,983,623,1343,173,1613,893,533,1973,1253,353,1793,1073,713,1433,38,1478,758,398,196,1636,916,556,1996,1276,106,1546,826,466,1906,1186,286,1726,1006,646,1366,61,1501,781,421,1861,1141,241,1681,961,601,1321,151,1591,871,511,1951,1231,331,1771,1051,691,1411,16,1456,736,376,1816,1096,927,567,2007,1287,117,1557,837,477,1917,1197,297,1737,1017,657,1377,72,1512,792,432,1872,1152,252,1692,972,612,1332,162,1602,882,522,1962,1242,342,1782,1062,702,1422,27,1467,747,387,1827,1107,207,1647,1984,1264,94,1534,814,454,1894,1174,274,1714,994,634,1354,49,1489,769,409,1849,1129,229,1669,949,589,1309,139,1579,859,499,1939,1219,319,1759,1039,679,1399,4,1444,724,364,1804,1084,184,1624,904,544,131,1571,851,491,1931,1211,311,1751,1031,671,1391,86,1526,806,446,1886,1166,266,1706,986,626,1346,176,1616,896,536,1976,1256,356,1796,1076,716,1436,41,1481,761,401,1841,1121,221,1661,941,581,2021,1301,829,469,1909,1189,289,1729,1009,649,1369,64,1504,784,424,1864,1144,244,1684,964,604,1324,154,1594,874,514,1954,1234,334,1774,1054,694,1414,19,1459,739,379,1819,1099,199,1639,919,559,1999,1279,109,1549,1920,1200,300,1740,1020,660,1380,75,1515,795,435,1875,1155,255,1695,975,615,1335,165,1605,885,525,1965,1245,345,1785,1065,705,1425,30,1470,750,390,1830,1110,210,1650,930,570,2010,1290,120,1560,840,480,277,1717,997,637,1357,52,1492,772,412,1852,1132,232,1672,952,592,1312,142,1582,862,502,1942,1222,322,1762,1042,682,1402,7,1447,727,367,1807,1087,187,1627,907,547,1987,1267,97,1537,817,457,1897,1177,1025,665,1385,80,1520,800,440,1880,1160,260,1700,980,620,1340,170,1610,890,530,1970,1250,350,1790,1070,710,1430,35,1475,755,395,1835,1115,215,1655,935,575,2015,1295,125,1565,845,485,1925,1205,305,1745,1363,58,1498,778,418,1858,1138,238,1678,958,598,1318,148,1588,868,508,1948,1228,328,1768,1048,688,1408,13,1453,733,373,1813,1093,193,1633,913,553,1993,1273,103,1543,823,463,1903,1183,283,1723,1003,643,1509,789,429,1869,1149,249,1689,969,609,1329,159,1599,879,519,1959,1239,339,1779,1059,699,1419,24,1464,744,384,1824,1104,204,1644,924,564,2004,1284,114,1554,834,474,1914,1194,294,1734,1014,654,1374,69,406,1846,1126,226,1666,946,586,1306,136,1576,856,496,1936,1216,316,1756,1036,676,1396,1450,1441,721,361,1801,1081,181,1621,901,541,1981,1261,91,1531,811,451,1891,1171,271,1711,991,631,1351,46,1486,766,1169,269,1709,989,629,1349,179,1619,899,539,1979,1259,359,1799,1079,719,1439,44,1484,764,404,1844,1124,224,1664,944,584,2024,1304,134,1574,854,494,1934,1214,314,1754,1034,674,1394,89,1529,809,449,1889,1687,967,607,1327,157,1597,877,517,1957,1237,337,1777,1057,697,1417,22,1462,742,382,1822,1102,202,1642,922,562,2002,1282,112,1552,832,472,1912,1192,292,1732,1012,652,1372,67,1507,787,427,1867,1147,247,618,1338,168,1608,888,528,1968,1248,348,1788,1068,708,1428,33,1473,753,393,1833,1113,213,1653,933,573,2013,1293,123,1563,843,483,1923,1203,303,1743,1023,663,1383,78,1518,798,438,1878,1158,258,1698,978,146,1586,866,506,1946,1226,326,1766,1046,686,1406,11,1451,731,371,1811,1091,191,1631,911,551,1991,1271,101,1541,821,461,1901,1181,281,1721,1001,641,1361,56,1496,776,416,1856,1136,236,1676,956,596,1316,894,534,1974,1254,354,1794,1074,714,1434,39,1479,759,399,1839,1119,219,1659,939,579,2019,1299,129,1569,849,489,1929,1209,309,1749,1029,669,1389,84,1524,804,444,1884,1164,264,1704,984,624,1344,174,1614,1952,1232,332,1772,1052,692,1412,17,1457,737,377,1817,1097,197,1637,917,557,1997,1277,107,1547,827,467,1907,1187,287,1727,1007,647,1367,62,1502,782,422,1862,1142,242,1682,962,602,1322,152,1592,872,512,343,1783,1063,703,1423,28,1468,748,388,1828,1108,208,1648,928,568,2008,1288,118,1558,838,478,1918,1198,298,1738,1018,658,1378,73,1513,793,433,1873,1153,253,1693,973,613,1333,163,1603,883,523,1963,1243,1040,680,1400,5,1445,725,365,1805,1085,185,1625,905,545,1985,1265,95,1535,815,455,1895,1175,275,1715,995,635,1355,50,1490,770,410,1850,1130,230,1670,950,590,1310,140,1580,860,500,1940,1220,320,1760,1437,42,1482,762,402,1842,1122,222,1662,942,582,2022,1302,132,1572,852,492,1932,1212,312,1752,1032,672,1392,87,1527,807,447,1887,1167,267,1707,987,627,1347,177,1617,897,537,1977,1257,357,1797,1077,717,1460,740,380,1820,1100,200,1640,920,560,2e3,1280,110,1550,830,470,1910,1190,290,1730,1010,650,1370,65,1505,785,425,1865,1145,245,1685,965,605,1325,155,1595,875,515,1955,1235,335,1775,1055,695,1415,20,391,1831,1111,211,1651,931,571,2011,1291,121,1561,841,481,1921,1201,301,1741,1021,661,1381,76,1516,796,436,1876,1156,256,1696,976,616,1336,166,1606,886,526,1966,1246,346,1786,1066,706,1426,31,1471,751,1088,188,1628,908,548,1988,1268,98,1538,818,458,1898,1178,278,1718,998,638,1358,53,1493,773,413,1853,1133,233,1673,953,593,1313,143,1583,863,503,1943,1223,323,1763,1043,683,1403,8,1448,728,368,1808,1656,936,576,2016,1296,126,1566,846,486,1926,1206,306,1746,1026,666,1386,81,1521,801,441,1881,1161,261,1701,981,621,1341,171,1611,891,531,1971,1251,351,1791,1071,711,1431,36,1476,756,396,1836,1116,216,554,1994,1274,104,1544,824,464,1904,1184,284,1724,1004,644,1364,59,1499,779,419,1859,1139,239,1679,959,599,1319,149,1589,869,509,1949,1229,329,1769,1049,689,1409,14,1454,734,374,1814,1094,194,1634,914,1285,115,1555,835,475,1915,1195,295,1735,1015,655,1375,70,1510,790,430,1870,1150,250,1690,970,610,1330,160,1600,880,520,1960,1240,340,1780,1060,700,1420,25,1465,745,385,1825,1105,205,1645,925,565,2005,1532,812,452,1892,1172,272,1712,992,632,1352,47,1487,767,407,1847,1127,227,1667,947,587,1307,137,1577,857,497,1937,1217,317,1757,1037,677,1397,730,1442,722,362,1802,1082,182,1622,902,542,1982,1262,92,493,1933,1213,313,1753,1033,673,1393,88,1528,808,448,1888,1168,268,1708,988,628,1348,178,1618,898,538,1978,1258,358,1798,1078,718,1438,43,1483,763,403,1843,1123,223,1663,943,583,2023,1303,133,1573,853,1191,291,1731,1011,651,1371,66,1506,786,426,1866,1146,246,1686,966,606,1326,156,1596,876,516,1956,1236,336,1776,1056,696,1416,21,1461,741,381,1821,1101,201,1641,921,561,2001,1281,111,1551,831,471,1911,1742,1022,662,1382,77,1517,797,437,1877,1157,257,1697,977,617,1337,167,1607,887,527,1967,1247,347,1787,1067,707,1427,32,1472,752,392,1832,1112,212,1652,932,572,2012,1292,122,1562,842,482,1922,1202,302,639,1359,54,1494,774,414,1854,1134,234,1674,954,594,1314,144,1584,864,504,1944,1224,324,1764,1044,684,1404,9,1449,729,369,1809,1089,189,1629,909,549,1989,1269,99,1539,819,459,1899,1179,279,1719,999,82,1522,802,442,1882,1162,262,1702,982,622,1342,172,1612,892,532,1972,1252,352,1792,1072,712,1432,37,1477,757,397,1837,1117,217,1657,937,577,2017,1297,127,1567,847,487,1927,1207,307,1747,1027,667,1387,780,420,1860,1140,240,1680,960,600,1320,150,1590,870,510,1950,1230,330,1770,1050,690,1410,15,1455,735,375,1815,1095,195,1635,915,555,1995,1275,105,1545,825,465,1905,1185,285,1725,1005,645,1365,60,1500,1871,1151,251,1691,971,611,1331,161,1601,881,521,1961,1241,341,1781,1061,701,1421,26,1466,746,386,1826,1106,206,1646,926,566,2006,1286,116,1556,836,476,1916,1196,296,1736,1016,656,1376,71,1511,791,431,228,1668,948,588,1308,138,1578,858,498,1938,1218,318,1758,1038,678,1398,1395,1443,723,363,1803,1083,183,1623,903,543,1983,1263,93,1533,813,453,1893,1173,273,1713,993,633,1353,48,1488,768,408,1848,1128,985,625,1345,175,1615,895,535,1975,1255,355,1795,1075,715,1435,40,1480,760,400,1840,1120,220,1660,940,580,2020,1300,130,1570,850,490,1930,1210,310,1750,1030,670,1390,85,1525,805,445,1885,1165,265,1705,1323,153,1593,873,513,1953,1233,333,1773,1053,693,1413,18,1458,738,378,1818,1098,198,1638,918,558,1998,1278,108,1548,828,468,1908,1188,288,1728,1008,648,1368,63,1503,783,423,1863,1143,243,1683,963,603,1604,884,524,1964,1244,344,1784,1064,704,1424,29,1469,749,389,1829,1109,209,1649,929,569,2009,1289,119,1559,839,479,1919,1199,299,1739,1019,659,1379,74,1514,794,434,1874,1154,254,1694,974,614,1334,164,501,1941,1221,321,1761,1041,681,1401,6,1446,726,366,1806,1086,186,1626,906,546,1986,1266,96,1536,816,456,1896,1176,276,1716,996,636,1356,51,1491,771,411,1851,1131,231,1671,951,591,1311,141,1581,861,1249,349,1789,1069,709,1429,34,1474,754,394,1834,1114,214,1654,934,574,2014,1294,124,1564,844,484,1924,1204,304,1744,1024,664,1384,79,1519,799,439,1879,1159,259,1699,979,619,1339,169,1609,889,529,1969,1767,1047,687,1407,12,1452,732,372,1812,1092,192,1632,912,552,1992,1272,102,1542,822,462,1902,1182,282,1722,1002,642,1362,57,1497,777,417,1857,1137,237,1677,957,597,1317,147,1587,867,507,1947,1227,327,698,1418,23,1463,743,383,1823,1103,203,1643,923,563,2003,1283,113,1553,833,473,1913,1193,293,1733,1013,653,1373,68,1508,788,428,1868,1148,248,1688,968,608,1328,158,1598,878,518,1958,1238,338,1778,1058,0,1440,720,360,1800,1080,180,1620,900,540,1980,1260,90,1530,810,450,1890,1170,270,1710,990,630,1350,45,1485,765,405,1845,1125,225,1665,945,585,1305,135,1575,855,495,1935,1215,315,1755,1035,675,3],[2,398,1902,1150,210,1714,962,586,2090,1338,116,1620,868,492,1996,1244,304,1808,1056,680,2184,1432,69,1573,821,445,1949,1197,257,1761,1009,633,2137,1385,163,1667,915,539,2043,1291,351,1855,1103,727,1479,22,1,1914,1162,222,1726,974,598,2102,1350,128,1632,880,504,2008,1256,316,1820,1068,692,2196,1444,81,1585,833,457,1961,1209,269,1773,1021,645,2149,1397,175,1679,927,551,2055,1303,363,1867,1115,739,1491,34,1538,786,410,198,1702,950,574,2078,1326,104,1608,856,480,1984,1232,292,1796,1044,668,2172,1420,57,1561,809,433,1937,1185,245,1749,997,621,2125,1373,151,1655,903,527,2031,1279,339,1843,1091,715,1467,10,1514,762,386,1890,1138,980,604,2108,1356,134,1638,886,510,2014,1262,322,1826,1074,698,2202,1450,87,1591,839,463,1967,1215,275,1779,1027,651,2155,1403,181,1685,933,557,2061,1309,369,1873,1121,745,1497,40,1544,792,416,1920,1168,228,1732,2084,1332,110,1614,862,486,1990,1238,298,1802,1050,674,2178,1426,63,1567,815,439,1943,1191,251,1755,1003,627,2131,1379,157,1661,909,533,2037,1285,345,1849,1097,721,1473,16,1520,768,392,1896,1144,204,1708,956,580,122,1626,874,498,2002,1250,310,1814,1062,686,2190,1438,75,1579,827,451,1955,1203,263,1767,1015,639,2143,1391,169,1673,921,545,2049,1297,357,1861,1109,733,1485,28,1532,780,404,1908,1156,216,1720,968,592,2096,1344,850,474,1978,1226,286,1790,1038,662,2166,1414,51,1555,803,427,1931,1179,239,1743,991,615,2119,1367,145,1649,897,521,2025,1273,333,1837,1085,709,1461,4,1508,756,380,1884,1132,192,1696,944,568,2072,1320,98,1602,2017,1265,325,1829,1077,701,2205,1453,90,1594,842,466,1970,1218,278,1782,1030,654,2158,1406,184,1688,936,560,2064,1312,372,1876,1124,748,1500,43,1547,795,419,1923,1171,231,1735,983,607,2111,1359,137,1641,889,513,301,1805,1053,677,2181,1429,66,1570,818,442,1946,1194,254,1758,1006,630,2134,1382,160,1664,912,536,2040,1288,348,1852,1100,724,1476,19,1523,771,395,1899,1147,207,1711,959,583,2087,1335,113,1617,865,489,1993,1241,1065,689,2193,1441,78,1582,830,454,1958,1206,266,1770,1018,642,2146,1394,172,1676,924,548,2052,1300,360,1864,1112,736,1488,31,1535,783,407,1911,1159,219,1723,971,595,2099,1347,125,1629,877,501,2005,1253,313,1817,2169,1417,54,1558,806,430,1934,1182,242,1746,994,618,2122,1370,148,1652,900,524,2028,1276,336,1840,1088,712,1464,7,1511,759,383,1887,1135,195,1699,947,571,2075,1323,101,1605,853,477,1981,1229,289,1793,1041,665,84,1588,836,460,1964,1212,272,1776,1024,648,2152,1400,178,1682,930,554,2058,1306,366,1870,1118,742,1494,37,1541,789,413,1917,1165,225,1729,977,601,2105,1353,131,1635,883,507,2011,1259,319,1823,1071,695,2199,1447,812,436,1940,1188,248,1752,1e3,624,2128,1376,154,1658,906,530,2034,1282,342,1846,1094,718,1470,13,1517,765,389,1893,1141,201,1705,953,577,2081,1329,107,1611,859,483,1987,1235,295,1799,1047,671,2175,1423,60,1564,1952,1200,260,1764,1012,636,2140,1388,166,1670,918,542,2046,1294,354,1858,1106,730,1482,25,1529,777,401,1905,1153,213,1717,965,589,2093,1341,119,1623,871,495,1999,1247,307,1811,1059,683,2187,1435,72,1576,824,448,236,1740,988,612,2116,1364,142,1646,894,518,2022,1270,330,1834,1082,706,1458,1526,1505,753,377,1881,1129,189,1693,941,565,2069,1317,95,1599,847,471,1975,1223,283,1787,1035,659,2163,1411,48,1552,800,424,1928,1176,1033,657,2161,1409,187,1691,939,563,2067,1315,375,1879,1127,751,1503,46,1550,798,422,1926,1174,234,1738,986,610,2114,1362,140,1644,892,516,2020,1268,328,1832,1080,704,2208,1456,93,1597,845,469,1973,1221,281,1785,2138,1386,164,1668,916,540,2044,1292,352,1856,1104,728,1480,23,1527,775,399,1903,1151,211,1715,963,587,2091,1339,117,1621,869,493,1997,1245,305,1809,1057,681,2185,1433,70,1574,822,446,1950,1198,258,1762,1010,634,176,1680,928,552,2056,1304,364,1868,1116,740,1492,35,1539,787,411,1915,1163,223,1727,975,599,2103,1351,129,1633,881,505,2009,1257,317,1821,1069,693,2197,1445,82,1586,834,458,1962,1210,270,1774,1022,646,2150,1398,904,528,2032,1280,340,1844,1092,716,1468,11,1515,763,387,1891,1139,199,1703,951,575,2079,1327,105,1609,857,481,1985,1233,293,1797,1045,669,2173,1421,58,1562,810,434,1938,1186,246,1750,998,622,2126,1374,152,1656,2062,1310,370,1874,1122,746,1498,41,1545,793,417,1921,1169,229,1733,981,605,2109,1357,135,1639,887,511,2015,1263,323,1827,1075,699,2203,1451,88,1592,840,464,1968,1216,276,1780,1028,652,2156,1404,182,1686,934,558,346,1850,1098,722,1474,17,1521,769,393,1897,1145,205,1709,957,581,2085,1333,111,1615,863,487,1991,1239,299,1803,1051,675,2179,1427,64,1568,816,440,1944,1192,252,1756,1004,628,2132,1380,158,1662,910,534,2038,1286,1110,734,1486,29,1533,781,405,1909,1157,217,1721,969,593,2097,1345,123,1627,875,499,2003,1251,311,1815,1063,687,2191,1439,76,1580,828,452,1956,1204,264,1768,1016,640,2144,1392,170,1674,922,546,2050,1298,358,1862,1462,5,1509,757,381,1885,1133,193,1697,945,569,2073,1321,99,1603,851,475,1979,1227,287,1791,1039,663,2167,1415,52,1556,804,428,1932,1180,240,1744,992,616,2120,1368,146,1650,898,522,2026,1274,334,1838,1086,710,1548,796,420,1924,1172,232,1736,984,608,2112,1360,138,1642,890,514,2018,1266,326,1830,1078,702,2206,1454,91,1595,843,467,1971,1219,279,1783,1031,655,2159,1407,185,1689,937,561,2065,1313,373,1877,1125,749,1501,44,396,1900,1148,208,1712,960,584,2088,1336,114,1618,866,490,1994,1242,302,1806,1054,678,2182,1430,67,1571,819,443,1947,1195,255,1759,1007,631,2135,1383,161,1665,913,537,2041,1289,349,1853,1101,725,1477,20,1524,772,1160,220,1724,972,596,2100,1348,126,1630,878,502,2006,1254,314,1818,1066,690,2194,1442,79,1583,831,455,1959,1207,267,1771,1019,643,2147,1395,173,1677,925,549,2053,1301,361,1865,1113,737,1489,32,1536,784,408,1912,1700,948,572,2076,1324,102,1606,854,478,1982,1230,290,1794,1042,666,2170,1418,55,1559,807,431,1935,1183,243,1747,995,619,2123,1371,149,1653,901,525,2029,1277,337,1841,1089,713,1465,8,1512,760,384,1888,1136,196,602,2106,1354,132,1636,884,508,2012,1260,320,1824,1072,696,2200,1448,85,1589,837,461,1965,1213,273,1777,1025,649,2153,1401,179,1683,931,555,2059,1307,367,1871,1119,743,1495,38,1542,790,414,1918,1166,226,1730,978,1330,108,1612,860,484,1988,1236,296,1800,1048,672,2176,1424,61,1565,813,437,1941,1189,249,1753,1001,625,2129,1377,155,1659,907,531,2035,1283,343,1847,1095,719,1471,14,1518,766,390,1894,1142,202,1706,954,578,2082,1624,872,496,2e3,1248,308,1812,1060,684,2188,1436,73,1577,825,449,1953,1201,261,1765,1013,637,2141,1389,167,1671,919,543,2047,1295,355,1859,1107,731,1483,26,1530,778,402,1906,1154,214,1718,966,590,2094,1342,120,472,1976,1224,284,1788,1036,660,2164,1412,49,1553,801,425,1929,1177,237,1741,989,613,2117,1365,143,1647,895,519,2023,1271,331,1835,1083,707,1459,774,1506,754,378,1882,1130,190,1694,942,566,2070,1318,96,1600,848,1267,327,1831,1079,703,2207,1455,92,1596,844,468,1972,1220,280,1784,1032,656,2160,1408,186,1690,938,562,2066,1314,374,1878,1126,750,1502,45,1549,797,421,1925,1173,233,1737,985,609,2113,1361,139,1643,891,515,2019,1807,1055,679,2183,1431,68,1572,820,444,1948,1196,256,1760,1008,632,2136,1384,162,1666,914,538,2042,1290,350,1854,1102,726,1478,21,1525,773,397,1901,1149,209,1713,961,585,2089,1337,115,1619,867,491,1995,1243,303,691,2195,1443,80,1584,832,456,1960,1208,268,1772,1020,644,2148,1396,174,1678,926,550,2054,1302,362,1866,1114,738,1490,33,1537,785,409,1913,1161,221,1725,973,597,2101,1349,127,1631,879,503,2007,1255,315,1819,1067,1419,56,1560,808,432,1936,1184,244,1748,996,620,2124,1372,150,1654,902,526,2030,1278,338,1842,1090,714,1466,9,1513,761,385,1889,1137,197,1701,949,573,2077,1325,103,1607,855,479,1983,1231,291,1795,1043,667,2171,1590,838,462,1966,1214,274,1778,1026,650,2154,1402,180,1684,932,556,2060,1308,368,1872,1120,744,1496,39,1543,791,415,1919,1167,227,1731,979,603,2107,1355,133,1637,885,509,2013,1261,321,1825,1073,697,2201,1449,86,438,1942,1190,250,1754,1002,626,2130,1378,156,1660,908,532,2036,1284,344,1848,1096,720,1472,15,1519,767,391,1895,1143,203,1707,955,579,2083,1331,109,1613,861,485,1989,1237,297,1801,1049,673,2177,1425,62,1566,814,1202,262,1766,1014,638,2142,1390,168,1672,920,544,2048,1296,356,1860,1108,732,1484,27,1531,779,403,1907,1155,215,1719,967,591,2095,1343,121,1625,873,497,2001,1249,309,1813,1061,685,2189,1437,74,1578,826,450,1954,1742,990,614,2118,1366,144,1648,896,520,2024,1272,332,1836,1084,708,1460,1457,1507,755,379,1883,1131,191,1695,943,567,2071,1319,97,1601,849,473,1977,1225,285,1789,1037,661,2165,1413,50,1554,802,426,1930,1178,238,653,2157,1405,183,1687,935,559,2063,1311,371,1875,1123,747,1499,42,1546,794,418,1922,1170,230,1734,982,606,2110,1358,136,1640,888,512,2016,1264,324,1828,1076,700,2204,1452,89,1593,841,465,1969,1217,277,1781,1029,1381,159,1663,911,535,2039,1287,347,1851,1099,723,1475,18,1522,770,394,1898,1146,206,1710,958,582,2086,1334,112,1616,864,488,1992,1240,300,1804,1052,676,2180,1428,65,1569,817,441,1945,1193,253,1757,1005,629,2133,1675,923,547,2051,1299,359,1863,1111,735,1487,30,1534,782,406,1910,1158,218,1722,970,594,2098,1346,124,1628,876,500,2004,1252,312,1816,1064,688,2192,1440,77,1581,829,453,1957,1205,265,1769,1017,641,2145,1393,171,523,2027,1275,335,1839,1087,711,1463,6,1510,758,382,1886,1134,194,1698,946,570,2074,1322,100,1604,852,476,1980,1228,288,1792,1040,664,2168,1416,53,1557,805,429,1933,1181,241,1745,993,617,2121,1369,147,1651,899,1305,365,1869,1117,741,1493,36,1540,788,412,1916,1164,224,1728,976,600,2104,1352,130,1634,882,506,2010,1258,318,1822,1070,694,2198,1446,83,1587,835,459,1963,1211,271,1775,1023,647,2151,1399,177,1681,929,553,2057,1845,1093,717,1469,12,1516,764,388,1892,1140,200,1704,952,576,2080,1328,106,1610,858,482,1986,1234,294,1798,1046,670,2174,1422,59,1563,811,435,1939,1187,247,1751,999,623,2127,1375,153,1657,905,529,2033,1281,341,729,1481,24,1528,776,400,1904,1152,212,1716,964,588,2092,1340,118,1622,870,494,1998,1246,306,1810,1058,682,2186,1434,71,1575,823,447,1951,1199,259,1763,1011,635,2139,1387,165,1669,917,541,2045,1293,353,1857,1105,0,1504,752,376,1880,1128,188,1692,940,564,2068,1316,94,1598,846,470,1974,1222,282,1786,1034,658,2162,1410,47,1551,799,423,1927,1175,235,1739,987,611,2115,1363,141,1645,893,517,2021,1269,329,1833,1081,705,3]]},f={ECC000:0,ECC050:1,ECC080:2,ECC100:3,ECC140:4},l=["square9","square11","square13","square15","square17","square19","square21","square23","square25","square27","square29","square31","square33","square35","square37","square39","square41","square43","square45","square47","square49"],e.default={chooseEncodationScheme:d,Constants:s,getECC:m,getProperSymbolSize:A,getSymbolSizeInfo:C,getSymbolSizeValue:k,getCodeWord:y,getModuleMapping:O,setBit:p,setFinder:E,setRegionData:j,createModules:i.default.createModules}},function(t,e,n){"use strict";var r,i;function o(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){u(this,a),this._data=t,this.offset=e||0}Object.defineProperty(e,"__esModule",{value:!0}),(r=function(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t})(a,[{key:"fetchBit",value:function t(){return this.getBit(this.offset++)}},{key:"getBit",value:function t(e){return!(e>=this.bitLength)&&0!=(this._data[~~(e/8)]&128>>e%8)}},{key:"setBit",value:function t(e,n){var r,e,r=~~(e/8),e=(128>>e%8)%256;this._data[r]&=(this._data[r]&~e)%256,n&&(this._data[r]|=e)}},{key:"putBit",value:function t(e){this.setBit(this.offset,e),this.offset++}},{key:"putBitsMSF",value:function t(e,n,r){var i,o,u,i=!!r;for(i||(r=this.offset),o=2147483648,u=0;u<n;++u)this.setBit(r+u,0!=(e&o)),o/=2;i||(this.offset+=n)}},{key:"putBitsLSF",value:function t(e,n,r){var i,o,u,i=!!r;for(i||(r=this.offset),o=1,u=0;u<n;++u)this.setBit(r+u,0!=(e&o)),o<<=1;i||(this.offset+=n)}},{key:"bitLength",get:function t(){return 8*this._data.length}},{key:"currentBit",get:function t(){return this.getBit(this.offset)}}]),e.default=a},function(t,e,n){"use strict";var r,i,o,u,a,n;function c(t){return t&&t.__esModule?t:{default:t}}i=c(r=n(2)),u=c(o=n(46)),n=c(a=n(47)),i.default.registerEncoder("EAN8",u.default),i.default.registerEncoder("EAN13",n.default)},function(t,e,n){"use strict";var r,i,i,o,u,a,c,o,s;function f(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function l(t){return t&&t.__esModule?t:{default:t}}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function d(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function w(t){var t,e,e;return h(this,w),(e=(t=v(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,t))).config.text).length<8&&(e+=t.checksum(e,!0)),t.text=e,e=t.calculateData(),t.adjustDesiredSize(e),t.convertToShape(e),t}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&f(t.prototype,e),n&&f(t,n),t},i=n(12),i=l(i),o=n(9),u=l(o),a=n(1),c=n(0),d(w,s=i.default),r(w,[{key:"validate",value:function t(){var e,n,r,e=this.config.text,n;if(!/^[0-9](\d{6}||\d{7})$/.test(e))throw new a.InvalidTextException(e,"Text should be numbers. The length should be 7 or 8.");if(8===e.length&&(r=this.checksum(e.substr(0,7),!0))!=e[7])throw new a.InvalidTextException(e,"Check digit is invalid.")}},{key:"calculateData",value:function t(){var n,e,r,i,e,o,n=this,e=this.text,r=this.isTextGroup,i=e.substr(0,4),e=e.substr(4,4),o=[];return o.push({text:"<",role:"LEFT_QUIET_ZONE"}),o.push({binary:u.default.NORMAL_GUARD,role:"GUARD"}),r?(0,c.str2Array)(i).forEach(function(t,e){o.push({binary:n.encodeChar(t,u.default.ean8LeftStructure,e),text:t})}):o.push({binary:this.encode(i,u.default.ean8LeftStructure),text:i}),o.push({binary:u.default.CENTRE_GUARD,role:"GUARD"}),r?(0,c.str2Array)(e).forEach(function(t,e){o.push({binary:n.encodeChar(t,u.default.rightStructure,e),text:t})}):o.push({binary:this.encode(e,u.default.rightStructure),text:e}),o.push({binary:u.default.NORMAL_GUARD,role:"GUARD"}),o.push({text:">",role:"RIGHT_QUIET_ZONE"}),o}}]),o=w,e.default=o},function(t,e,n){"use strict";var r,i,i,o,s,f,l,o,u;function a(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function c(t){return t&&t.__esModule?t:{default:t}}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function d(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function w(t){var t,e,n,r,e,n;return h(this,w),n=(e=(t=v(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,t))).config).text,r=e.addOn,e=e.addOnHeight,n.length<13&&(n+=t.checksum(n)),t.text=n,(0,l.isDefined)(r)&&(t.addOn=""+r,"auto"!==e&&((0,l.isNumberLike)(e)?e=+e:(e=(0,l.convertUnit)((0,l.fixSize2PixelDefault)(e)),t.addOnHeightInPiexl=e,e/=t.style.unitValue)),t.addOnHeight=e),n=t.calculateData(),t.adjustDesiredSize(n),t.convertToShape(n),t}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t},i=n(12),i=c(i),o=n(9),s=c(o),f=n(1),l=n(0),d(w,u=i.default),r(w,[{key:"validate",value:function t(){var e,n,r,e=this.config.text,n;if(!/^[1-9](\d{11}||\d{12})$/.test(e))throw new f.InvalidTextException(e,"Text should be numbers. And it should not start with 0. The length should be 12 or 13.");if(13===e.length&&(r=this.checksum(e.substr(0,12)))!=e[12])throw new f.InvalidTextException(e,"Check digit is invalid.")}},{key:"calculateData",value:function t(){var n,e,r,i,o,u,a,c,n=this,e=this.text,r=this.addOn,i=this.isTextGroup,o=e.substr(1,6),u=e.substr(7,6),a=s.default.leftStructure[e[0]],c=[];return c.push({text:e[0],role:"LEFT_QUIET_ZONE"}),c.push({binary:s.default.NORMAL_GUARD,role:"GUARD"}),i?(0,l.str2Array)(o).forEach(function(t,e){c.push({binary:n.encodeChar(t,a,e),text:t})}):c.push({binary:this.encode(o,a),text:o}),c.push({binary:s.default.CENTRE_GUARD,role:"GUARD"}),i?(0,l.str2Array)(u).forEach(function(t,e){c.push({binary:n.encodeChar(t,s.default.rightStructure,e),text:t})}):c.push({binary:this.encode(u,s.default.rightStructure),text:u}),c.push({binary:s.default.NORMAL_GUARD,role:"GUARD"}),r?(c.push({role:"ADDON_QUIET_ZONE"}),this.addon(c)):c.push({text:">",role:"NO_ADDON_RIGHT_QUIET_ZONE"}),c}},{key:"addon",value:function t(n){var r,i,e,o,u,a,c,o,r=this,i=this.addOn,e=this.isTextGroup;if(2===i.length)a=u=o=void 0,o=s.default.get2DigitAddOnTable(i),u=this.encodeChar(i[0],o.leftStructure,0),a=this.encodeChar(i[1],o.rightStructure,0),e?(n.push({binary:s.default.ADD_ON_GUARD,role:"ADDON"}),n.push({binary:u,text:i[0],role:"ADDON"}),n.push({binary:s.default.ADD_ON_DELINEATOR,role:"ADDON"}),n.push({binary:a,text:i[1],role:"ADDON"})):n.push({binary:s.default.ADD_ON_GUARD+u+s.default.ADD_ON_DELINEATOR+a,text:i,role:"ADDON"});else{if(5!==i.length)throw new f.BadArgumentsException(i);c=s.default.get5DigitAddOnTable(i),e?(n.push({binary:s.default.ADD_ON_GUARD,role:"ADDON"}),(0,l.str2Array)(i).forEach(function(t,e){n.push({binary:r.encodeFor5DigitAddOn(t,e,c),text:t,role:"ADDON"}),e<i.length-1&&n.push({binary:s.default.ADD_ON_DELINEATOR,role:"ADDON"})})):(o=(0,l.str2Array)(i).reduce(function(t,e,n){return t+=r.encodeFor5DigitAddOn(e,n,c),n<i.length-1&&(t+=s.default.ADD_ON_DELINEATOR),t},""),n.push({binary:s.default.ADD_ON_GUARD+o,text:i,role:"ADDON"}))}n.push({text:">",role:"ADDON_RIGHT_QUIET_ZONE"})}},{key:"encodeFor5DigitAddOn",value:function t(e,n,r){var i;return s.default.TABLE[r[n]][e]}}]),o=w,e.default=o},function(t,e,n){"use strict";var r,i,n,n,n,o;function u(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function f(t){return a(this,f),c(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,t,!0))}Object.defineProperty(e,"__esModule",{value:!0}),i=u(r=n(2)),n=n(11),n=u(n),s(f,o=n.default),n=f,e.default=n,i.default.registerEncoder("GS1_128",n)},function(t,e,n){"use strict";var r,i,i,o,u,a,f,s,a,l,a,c,h,a,v;function d(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function w(t){return t&&t.__esModule?t:{default:t}}function b(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function p(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function g(t){var t,e,n,r,i,o,e,r,i;return b(this,g),n=(e=(t=y(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,t,f.default.defaultConfig))).config).text,r=e.errorCorrectionLevel,i=e.columns,o=e.rows,e=e.compact,t.text=n,t.ecl="auto"===r?r:+r,t.columns="auto"===i?i:+i,t.rows="auto"===o?o:+o,t.compact=!!e,r=f.default.compaction(n),t.encode(r),t.genEcc(),i=t.fillMatrix(),t.adjustDesiredSize(i),t.convertToShape(i),t}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&d(t.prototype,e),n&&d(t,n),t},i=n(7),i=w(i),u=w(o=n(2)),a=n(50),f=w(a),s=n(0),a=n(51),l=w(a),a=n(52),c=w(a),h=n(1),p(g,v=i.default),r(g,[{key:"validate",value:function t(){var e,n,r,i,e,o,e=this.config,n=e.text,r=e.errorCorrectionLevel,i=e.rows,e=e.columns,o;if(!/^[\x00-\xFF]+$/.test(n))throw new h.InvalidTextException(n);if((0,s.isNumberLike)(r)&&(r<0||8<r))throw new h.BadArgumentsException({errorCorrectionLevel:r},"ErrorCorrectionLevel is from 0 - 8.");if((0,s.isNumberLike)(i)&&(i<3||90<i))throw new h.BadArgumentsException({rows:i},"Rows is from 3 - 90.");if((0,s.isNumberLike)(e)&&(e<1||30<e))throw new h.BadArgumentsException({columns:e},"Columns is from 1 - 30.")}},{key:"encodeNC",value:function t(e){var e,i,e=e.text,i=[];return(0,s.sliceString)(e,44,function(t){for(var e,n,r,e=new c.default("1"+t),n=[];r=e.modulo(900),e=e.dividedToIntegerBy((0,c.default)(900)),n.unshift(+r.toString()),!e.lessThan(1););i=i.concat(n)}),i.unshift(f.default.MODE_NC),i}},{key:"encodeBC",value:function t(e){var n,o,n=e.text,o=[];return(0,s.sliceString)(n,6,function(t){var e,n,r,i;if(6===t.length)for(e=5,(n=0,s.sliceString)(t,1,function(t){n+=t.charCodeAt(0)*Math.pow(256,e--)}),r=0,i=Math.floor(n/Math.pow(900,r))%900;o.unshift(i),0<(i=Math.floor(n/Math.pow(900,++r))%900););else(0,s.sliceString)(t,1,function(t){o.push(t.charCodeAt(0))})}),o.unshift(e.mode),o}},{key:"encodeTC",value:function t(e){var n,r,i,n=[],r="al";return e.subModes.forEach(function(e){r!==e.mode&&(n=n.concat(f.default.getTCSubModeValue(e.mode,r))),(0,s.sliceString)(e.text,1,function(t){n.push(f.default.getTCValue(t,e.mode))}),"ps"!==e.mode&&"as"!==e.mode&&(r=e.mode)}),i=[f.default.MODE_TC],(0,s.sliceArray)(n,2,function(t){2===t.length?i.push(30*t[0]+t[1]):i.push(30*t[0]+29)}),i}},{key:"encode",value:function t(e){var n,r,n=this,r=[];e.forEach(function(t){switch(t.mode){case f.default.MODE_TC:r=r.concat(n.encodeTC(t));break;case f.default.MODE_BC:case f.default.MODE_BC6:case f.default.MODE_BC_SHIFT:r=r.concat(n.encodeBC(t));break;case f.default.MODE_NC:r=r.concat(n.encodeNC(t))}}),r[0]===f.default.MODE_TC&&r.shift(),this.data=r}},{key:"genEcc",value:function t(){var e,n,r,i,n,o,u,a,u,c,e=this.data,n=this.ecl,r=this.columns,i=this.rows;if("auto"===n&&(this.ecl=n=f.default.getAutoECL(e)),n=Math.pow(2,n+1),o=e.length+1+n,"auto"===i&&"auto"===r)a=(u=f.default.getAutoRowAndCol(o)).col,u=u.row,this.columns=r=a,this.rows=i=u;else if("auto"===i){if(90<(i=Math.ceil(o/r)))throw new h.BadArgumentsException({columns:r},"Columns is not large enough");this.rows=i=i<3?3:i}else if("auto"===r){if(30<(r=Math.ceil(o/i)))throw new h.BadArgumentsException({rows:i},"Rows is not large enough");this.columns=r}if(e.unshift(c=r*i-n),e.length>f.default.MAX_DATA_NUM||e.length>c)throw new h.TextTooLargeException;for(;e.length<c;)e.push(f.default.PAD);this.ecc=(0,l.default)(e,this.ecl)}},{key:"fillMatrix",value:function t(){var e,n,i,o,u,a,e,c,s,e=this.data,n=this.ecc,i=this.columns,o=this.rows,u=this.ecl,a=this.compact,e=e.concat(n),c=f.default.createModules(o,i);return e.forEach(function(t,e){var n,r,n=Math.floor(e/i),r;c[n][e%i]=f.default.getPattern(n,t)}),s=[],c.forEach(function(t,e){var n,e,r,n=f.default.getPattern(e,f.default.getIndicator(e,o,u,i)),e=f.default.getPattern(e,f.default.getIndicator(e,o,u,i,!0)),r=[f.default.START,n.toString(2)];t.forEach(function(t){r.push(t.toString(2))}),a?r.push(f.default.COMPACT_END):(r.push(e.toString(2)),r.push(f.default.END)),s.push(r)}),s}},{key:"adjustDesiredSize",value:function t(e){var n,r,i,o,u,e,a,c,n=this.config.desiredSize,r=this.quietZone,i=this.fontHeight,o=this.containerWidth,u=this.containerHeight;n&&(e=e[0].reduce(function(t,e){return t+e.length},0)+(0,s.getQuietZoneRelativeValue)(r.left)+(0,s.getQuietZoneRelativeValue)(r.right),o=o-(0,s.getQuietZonePixelValue)(r.left)-(0,s.getQuietZonePixelValue)(r.right),c=a=void 0,c=n.forceRounding?(a=~~(o/e))<1?1:a:a=o/e,u=u-(0,s.getQuietZonePixelValue)(r.top)-(0,s.getQuietZonePixelValue)(r.bottom),this.style.unitValue=c,this.style.fontSizeInUnit=i/c,this.height=u/c-(0,s.getQuietZoneRelativeValue)(r.top)-(0,s.getQuietZoneRelativeValue)(r.bottom),Object.keys(r).forEach(function(t){r[t].originIsAbsoluteValue&&(r[t].relativeValue=r[t].pixelValue/c)}))}},{key:"convertToShape",value:function t(e){var n,r,i,o,u,a,n=this.height,r=this.quietZone,i=n/e.length,o=[],u=void 0,a=r.top.relativeValue;e.forEach(function(t){u=r.left.relativeValue,t.forEach(function(t){(0,s.combineTruthy)(t).forEach(function(t){0!==t?(o.push({type:"rect",x:u,y:a,width:t,height:i}),u+=t):u++})}),a+=i}),this.size={width:u+r.right.relativeValue,height:a+r.bottom.relativeValue},this.shapes=o}}]),a=g,e.default=a,u.default.registerEncoder("PDF417",a)},function(F,t,e){"use strict";var i,r,n,o,u,e,a,c,s,f,l,h,v,d,w,b,y,p,g,m,C,k;function A(t){return-1<w[0].indexOf(t)}function O(t){return-1<w[1].indexOf(t)}function E(t){return-1<w[2].indexOf(t)}function j(t){return-1<w[3].indexOf(t)}function S(t){return A(t)||O(t)||E(t)||j(t)}function T(t,e){for(var n=e,r=t.length,i=0;n<r&&("0"<=t[n]&&t[n]<="9"?i++:i=0,S(t[n]));){if(13<=i){n-=--i;break}n++}return t.substring(e,n)}function x(t,e){for(var n=e,r=t.length;n<r&&!(t[n]<"0"||"9"<t[n]);)n++;return t.substring(e,n)}function M(t,e){for(var n=e,r=t.length,i=0,o=0;n<r;){if(t[n]<"0"||"9"<t[n]?i++:i=0,S(t[n])?o++:i=0,5<=o){n-=--o;break}if(13<=i){n-=--i;break}n++}return t.substring(e,n)}function B(t){for(var e,n,r,i,o,o,o,e=0,n=t.length,r={mode:y,text:""},i=[];e<n;)13<=(o=x(t,e)).length?(i.push(r={mode:g,text:o}),e+=o.length):5<=(o=T(t,e)).length?(i.push(r={mode:y,text:o}),e+=o.length):(1===(o=M(t,e)).length&&r.mode==y?i.push(r={mode:C,text:o}):(r=o.length%6==0?{mode:m,text:o}:{mode:p,text:o},i.push(r)),e+=o.length);return i.forEach(function(t){var e,n,r,i,o,u,a;if(t.mode==y)for(t.subModes=n=[e={mode:"al",text:""}],r=0,i=t.text.length;r<i;r++)A(o=t.text[r])?0===r||"al"===e.mode?e.text+=o:(e=!A(u=t.text[r+1])&&"ll"===e.mode?{mode:"as",text:o}:{mode:"al",text:o},n.push(e)):O(o)?"ll"===e.mode?e.text+=o:n.push(e={mode:"ll",text:o}):E(o)?"pl"===e.mode&&j(o)||"ml"===e.mode?e.text+=o:n.push(e={mode:"ml",text:o}):j(o)&&("pl"===e.mode?e.text+=o:(e=j(a=t.text[r+1])?{mode:"pl",text:o}:{mode:"ps",text:o},n.push(e)))}),i}function _(t,e,n,r,i){var o=~~(t/3),u=~~((e-1)/3),a=3*n+(e-1)%3,c=r-1,s,f=void 0;switch(t%3*3){case 0:f=i?c:u;break;case 3:f=i?u:a;break;case 6:f=i?a:c}return 30*o+f}function N(t,e){var n;return r[t%3][e]}function D(t,e){var n=void 0;switch(e){case"ll":n=w[1].indexOf(t);break;case"ml":n=w[2].indexOf(t);break;case"al":case"as":n=w[0].indexOf(t);break;case"pl":case"ps":n=w[3].indexOf(t)}return n}function I(t,e){var n=D(d[t],e);return-1<n?[n]:k[e][t]}function R(t,e){for(var n,r,n=[],r=0;r<t;r++)n.push((0,i.fillArray)(new Array(e),null));return n}function q(t){var t=t.length;return t<=40?2:t<=160?3:t<=320?4:5}function L(t){var e=31,n=void 0,r=void 0;do{if(e--,r=(n=Math.ceil(t/e))/e,e<2)break}while(r<4);return{col:e,row:n=n<3?3:n}}Object.defineProperty(t,"__esModule",{value:!0}),i=e(0),r=[[120256,125680,128380,120032,125560,128318,108736,119920,108640,86080,108592,86048,110016,120560,125820,109792,120440,125758,88256,109680,88160,89536,110320,120700,89312,110200,120638,89200,110140,89840,110460,89720,110398,89980,128506,119520,125304,128190,107712,119408,125244,107616,119352,84032,107568,119324,84e3,107544,83984,108256,119672,125374,85184,108144,119612,85088,108088,119582,85040,108060,85728,108408,119742,85616,108348,85560,108318,85880,108478,85820,85790,107200,119152,125116,107104,119096,125086,83008,107056,119068,82976,107032,82960,82952,83648,107376,119228,83552,107320,119198,83504,107292,83480,83468,83824,107452,83768,107422,83740,83900,106848,118968,125022,82496,106800,118940,82464,106776,118926,82448,106764,82440,106758,82784,106936,119006,82736,106908,82712,106894,82700,82694,106974,82830,82240,106672,118876,82208,106648,118862,82192,106636,82184,106630,82180,82352,82328,82316,82080,118830,106572,106566,82050,117472,124280,127678,103616,117360,124220,103520,117304,124190,75840,103472,75808,104160,117624,124350,76992,104048,117564,76896,103992,76848,76824,77536,104312,117694,77424,104252,77368,77340,77688,104382,77628,77758,121536,126320,128700,121440,126264,128670,111680,121392,126236,111648,121368,126222,111632,121356,103104,117104,124092,112320,103008,117048,124062,112224,121656,126366,93248,74784,102936,117006,93216,112152,93200,75456,103280,117180,93888,75360,103224,117150,93792,112440,121758,93744,75288,93720,75632,103356,94064,75576,103326,94008,112542,93980,75708,94140,75678,94110,121184,126136,128606,111168,121136,126108,111136,121112,126094,111120,121100,111112,111108,102752,116920,123998,111456,102704,116892,91712,74272,121244,116878,91680,74256,102668,91664,111372,102662,74244,74592,102840,116958,92e3,74544,102812,91952,111516,102798,91928,74508,74502,74680,102878,92088,74652,92060,74638,92046,92126,110912,121008,126044,110880,120984,126030,110864,120972,110856,120966,110852,110850,74048,102576,116828,90944,74016,102552,116814,90912,111e3,121038,90896,73992,102534,90888,110982,90884,74160,102620,91056,74136,102606,91032,111054,91020,74118,91014,91100,91086,110752,120920,125998,110736,120908,110728,120902,110724,110722,73888,102488,116782,90528,73872,102476,90512,110796,102470,90504,73860,90500,73858,73944,90584,90572,90566,120876,120870,110658,102444,73800,90312,90308,90306,101056,116080,123580,100960,116024,70720,100912,115996,70688,100888,70672,70664,71360,101232,116156,71264,101176,116126,71216,101148,71192,71180,71536,101308,71480,101278,71452,71612,71582,118112,124600,127838,105024,118064,124572,104992,118040,124558,104976,118028,104968,118022,100704,115896,123486,105312,100656,115868,79424,70176,118172,115854,79392,105240,100620,79376,70152,79368,70496,100792,115934,79712,70448,118238,79664,105372,100750,79640,70412,79628,70584,100830,79800,70556,79772,70542,70622,79838,122176,126640,128860,122144,126616,128846,122128,126604,122120,126598,122116,104768,117936,124508,113472,104736,126684,124494,113440,122264,126670,113424,104712,117894,113416,122246,104706,69952,100528,115804,78656,69920,100504,115790,96064,78624,104856,117966,96032,113560,122318,100486,96016,78600,104838,96008,69890,70064,100572,78768,70040,100558,96176,78744,104910,96152,113614,70022,78726,70108,78812,70094,96220,78798,122016,126552,128814,122e3,126540,121992,126534,121988,121986,104608,117848,124462,113056,104592,126574,113040,122060,117830,113032,104580,113028,104578,113026,69792,100440,115758,78240,69776,100428,95136,78224,104652,100422,95120,113100,69764,95112,78212,69762,78210,69848,100462,78296,69836,95192,78284,69830,95180,78278,69870,95214,121936,126508,121928,126502,121924,121922,104528,117804,112848,104520,117798,112840,121958,112836,104514,112834,69712,100396,78032,69704,100390,94672,78024,104550,94664,112870,69698,94660,78018,94658,78060,94700,94694,126486,121890,117782,104484,104482,69672,77928,94440,69666,77922,99680,68160,99632,68128,99608,115342,68112,99596,68104,99590,68448,99768,115422,68400,99740,68376,99726,68364,68358,68536,99806,68508,68494,68574,101696,116400,123740,101664,116376,101648,116364,101640,116358,101636,67904,99504,115292,72512,67872,116444,115278,72480,101784,116430,72464,67848,99462,72456,101766,67842,68016,99548,72624,67992,99534,72600,101838,72588,67974,68060,72668,68046,72654,118432,124760,127918,118416,124748,118408,124742,118404,118402,101536,116312,105888,101520,116300,105872,118476,116294,105864,101508,105860,101506,105858,67744,99416,72096,67728,116334,80800,72080,101580,99398,80784,105932,67716,80776,72068,67714,72066,67800,99438,72152,67788,80856,72140,67782,80844,72134,67822,72174,80878,126800,128940,126792,128934,126788,126786,118352,124716,122576,126828,124710,122568,126822,122564,118338,122562,101456,116268,105680,101448,116262,114128,105672,118374,114120,122598,101442,114116,105666,114114,67664,99372,71888,67656,99366,80336,71880,101478,97232,80328,105702,67650,97224,114150,71874,97220,67692,71916,67686,80364,71910,97260,80358,97254,126760,128918,126756,126754,118312,124694,122472,126774,122468,118306,122466,101416,116246,105576,101412,113896,105572,101410,113892,105570,113890,67624,99350,71784,101430,80104,71780,67618,96744,80100,71778,96740,80098,96738,71798,96758,126738,122420,122418,105524,113780,113778,71732,79988,96500,96498,66880,66848,98968,66832,66824,66820,66992,66968,66956,66950,67036,67022,1e5,99984,115532,99976,115526,99972,99970,66720,98904,69024,100056,98892,69008,100044,69e3,100038,68996,66690,68994,66776,98926,69080,100078,69068,66758,69062,66798,69102,116560,116552,116548,116546,99920,102096,116588,115494,102088,116582,102084,99906,102082,66640,68816,66632,98854,73168,68808,66628,73160,68804,66626,73156,68802,66668,68844,66662,73196,68838,73190,124840,124836,124834,116520,118632,124854,118628,116514,118626,99880,115478,101992,116534,106216,101988,99874,106212,101986,106210,66600,98838,68712,99894,72936,68708,66594,81384,72932,68706,81380,72930,66614,68726,72950,81398,128980,128978,124820,126900,124818,126898,116500,118580,116498,122740,118578,122738,99860,101940,99858,106100,101938,114420],[128352,129720,125504,128304,129692,125472,128280,129678,125456,128268,125448,128262,125444,125792,128440,129758,120384,125744,128412,120352,125720,128398,120336,125708,120328,125702,120324,120672,125880,128478,110144,120624,125852,110112,120600,125838,110096,120588,110088,120582,110084,110432,120760,125918,89664,110384,120732,89632,110360,120718,89616,110348,89608,110342,89952,110520,120798,89904,110492,89880,110478,89868,90040,110558,90012,89998,125248,128176,129628,125216,128152,129614,125200,128140,125192,128134,125188,125186,119616,125360,128220,119584,125336,128206,119568,125324,119560,125318,119556,119554,108352,119728,125404,108320,119704,125390,108304,119692,108296,119686,108292,108290,85824,108464,119772,85792,108440,119758,85776,108428,85768,108422,85764,85936,108508,85912,108494,85900,85894,85980,85966,125088,128088,129582,125072,128076,125064,128070,125060,125058,119200,125144,128110,119184,125132,119176,125126,119172,119170,107424,119256,125166,107408,119244,107400,119238,107396,107394,83872,107480,119278,83856,107468,83848,107462,83844,83842,83928,107502,83916,83910,83950,125008,128044,125e3,128038,124996,124994,118992,125036,118984,125030,118980,118978,106960,119020,106952,119014,106948,106946,82896,106988,82888,106982,82884,82882,82924,82918,124968,128022,124964,124962,118888,124982,118884,118882,106728,118902,106724,106722,82408,106742,82404,82402,124948,124946,118836,118834,106612,106610,124224,127664,129372,124192,127640,129358,124176,127628,124168,127622,124164,124162,117568,124336,127708,117536,124312,127694,117520,124300,117512,124294,117508,117506,104256,117680,124380,104224,117656,124366,104208,117644,104200,117638,104196,104194,77632,104368,117724,77600,104344,117710,77584,104332,77576,104326,77572,77744,104412,77720,104398,77708,77702,77788,77774,128672,129880,93168,128656,129868,92664,128648,129862,92412,128644,128642,124064,127576,129326,126368,124048,129902,126352,128716,127558,126344,124036,126340,124034,126338,117152,124120,127598,121760,117136,124108,121744,126412,124102,121736,117124,121732,117122,121730,103328,117208,124142,112544,103312,117196,112528,121804,117190,112520,103300,112516,103298,112514,75680,103384,117230,94112,75664,103372,94096,112588,103366,94088,75652,94084,75650,75736,103406,94168,75724,94156,75718,94150,75758,128592,129836,91640,128584,129830,91388,128580,91262,128578,123984,127532,126160,123976,127526,126152,128614,126148,123970,126146,116944,124012,121296,116936,124006,121288,126182,121284,116930,121282,102864,116972,111568,102856,116966,111560,121318,111556,102850,111554,74704,102892,92112,74696,102886,92104,111590,92100,74690,92098,74732,92140,74726,92134,128552,129814,90876,128548,90750,128546,123944,127510,126056,128566,126052,123938,126050,116840,123958,121064,116836,121060,116834,121058,102632,116854,111080,121078,111076,102626,111074,74216,102646,91112,74212,91108,74210,91106,74230,91126,128532,90494,128530,123924,126004,123922,126002,116788,120948,116786,120946,102516,110836,102514,110834,73972,90612,73970,90610,128522,123914,125978,116762,120890,102458,110714,123552,127320,129198,123536,127308,123528,127302,123524,123522,116128,123608,127342,116112,123596,116104,123590,116100,116098,101280,116184,123630,101264,116172,101256,116166,101252,101250,71584,101336,116206,71568,101324,71560,101318,71556,71554,71640,101358,71628,71622,71662,127824,129452,79352,127816,129446,79100,127812,78974,127810,123472,127276,124624,123464,127270,124616,127846,124612,123458,124610,115920,123500,118224,115912,123494,118216,124646,118212,115906,118210,100816,115948,105424,100808,115942,105416,118246,105412,100802,105410,70608,100844,79824,70600,100838,79816,105446,79812,70594,79810,70636,79852,70630,79846,129960,95728,113404,129956,95480,113278,129954,95356,95294,127784,129430,78588,128872,129974,95996,78462,128868,127778,95870,128866,123432,127254,124520,123428,126696,128886,123426,126692,124514,126690,115816,123446,117992,115812,122344,117988,115810,122340,117986,122338,100584,115830,104936,100580,113640,104932,100578,113636,104930,113634,70120,100598,78824,70116,96232,78820,70114,96228,78818,96226,70134,78838,129940,94968,113022,129938,94844,94782,127764,78206,128820,127762,95102,128818,123412,124468,123410,126580,124466,126578,115764,117876,115762,122100,117874,122098,100468,104692,100466,113140,104690,113138,69876,78324,69874,95220,78322,95218,129930,94588,94526,127754,128794,123402,124442,126522,115738,117818,121978,100410,104570,112890,69754,78074,94714,94398,123216,127148,123208,127142,123204,123202,115408,123244,115400,123238,115396,115394,99792,115436,99784,115430,99780,99778,68560,99820,68552,99814,68548,68546,68588,68582,127400,129238,72444,127396,72318,127394,123176,127126,123752,123172,123748,123170,123746,115304,123190,116456,115300,116452,115298,116450,99560,115318,101864,99556,101860,99554,101858,68072,99574,72680,68068,72676,68066,72674,68086,72694,129492,80632,105854,129490,80508,80446,127380,72062,127924,127378,80766,127922,123156,123700,123154,124788,123698,124786,115252,116340,115250,118516,116338,118514,99444,101620,99442,105972,101618,105970,67828,72180,67826,80884,72178,80882,97008,114044,96888,113982,96828,96798,129482,80252,130010,97148,80190,97086,127370,127898,128954,123146,123674,124730,126842,115226,116282,118394,122618,99386,101498,105722,114170,67706,71930,80378,96632,113854,96572,96542,80062,96702,96444,96414,96350,123048,123044,123042,115048,123062,115044,115042,99048,115062,99044,99042,67048,99062,67044,67042,67062,127188,68990,127186,123028,123316,123026,123314,114996,115572,114994,115570,98932,100084,98930,100082,66804,69108,66802,69106,129258,73084,73022,127178,127450,123018,123290,123834,114970,115514,116602,98874,99962,102138,66682,68858,73210,81272,106174,81212,81182,72894,81342,97648,114364,97592,114334,97564,97550,81084,97724,81054,97694,97464,114270,97436,97422,80990,97502,97372,97358,97326,114868,114866,98676,98674,66292,66290,123098,114842,115130,98618,99194,66170,67322,69310,73404,73374,81592,106334,81564,81550,73310,81630,97968,114524,97944,114510,97932,97926,81500,98012,81486,97998,97880,114478,97868,97862,81454,97902,97836,97830,69470,73564,73550,81752,106414,81740,81734,73518,81774,81708,81702],[109536,120312,86976,109040,120060,86496,108792,119934,86256,108668,86136,129744,89056,110072,129736,88560,109820,129732,88312,109694,129730,88188,128464,129772,89592,128456,129766,89340,128452,89214,128450,125904,128492,125896,128486,125892,125890,120784,125932,120776,125926,120772,120770,110544,120812,110536,120806,110532,84928,108016,119548,84448,107768,119422,84208,107644,84088,107582,84028,129640,85488,108284,129636,85240,108158,129634,85116,85054,128232,129654,85756,128228,85630,128226,125416,128246,125412,125410,119784,125430,119780,119778,108520,119798,108516,108514,83424,107256,119166,83184,107132,83064,107070,83004,82974,129588,83704,107390,129586,83580,83518,128116,83838,128114,125172,125170,119284,119282,107508,107506,82672,106876,82552,106814,82492,82462,129562,82812,82750,128058,125050,119034,82296,106686,82236,82206,82366,82108,82078,76736,103920,117500,76256,103672,117374,76016,103548,75896,103486,75836,129384,77296,104188,129380,77048,104062,129378,76924,76862,127720,129398,77564,127716,77438,127714,124392,127734,124388,124386,117736,124406,117732,117730,104424,117750,104420,104418,112096,121592,126334,92608,111856,121468,92384,111736,121406,92272,111676,92216,111646,92188,75232,103160,117118,93664,74992,103036,93424,112252,102974,93304,74812,93244,74782,93214,129332,75512,103294,129908,129330,93944,75388,129906,93820,75326,93758,127604,75646,128756,127602,94078,128754,124148,126452,124146,126450,117236,121844,117234,121842,103412,103410,91584,111344,121212,91360,111224,121150,91248,111164,91192,111134,91164,91150,74480,102780,91888,74360,102718,91768,111422,91708,74270,91678,129306,74620,129850,92028,74558,91966,127546,128634,124026,126202,116986,121338,102906,90848,110968,121022,90736,110908,90680,110878,90652,90638,74104,102590,91e3,74044,90940,74014,90910,74174,91070,90480,110780,90424,110750,90396,90382,73916,90556,73886,90526,90296,110686,90268,90254,73822,90334,90204,90190,71136,101112,116094,70896,100988,70776,100926,70716,70686,129204,71416,101246,129202,71292,71230,127348,71550,127346,123636,123634,116212,116210,101364,101362,79296,105200,118140,79072,105080,118078,78960,105020,78904,104990,78876,78862,70384,100732,79600,70264,100670,79480,105278,79420,70174,79390,129178,70524,129466,79740,70462,79678,127290,127866,123514,124666,115962,118266,100858,113376,122232,126654,95424,113264,122172,95328,113208,122142,95280,113180,95256,113166,95244,78560,104824,117950,95968,78448,104764,95856,113468,104734,95800,78364,95772,78350,95758,70008,100542,78712,69948,96120,78652,69918,96060,78622,96030,70078,78782,96190,94912,113008,122044,94816,112952,122014,94768,112924,94744,112910,94732,94726,78192,104636,95088,78136,104606,95032,113054,95004,78094,94990,69820,78268,69790,95164,78238,95134,94560,112824,121950,94512,112796,94488,112782,94476,94470,78008,104542,94648,77980,94620,77966,94606,69726,78046,94686,94384,112732,94360,112718,94348,94342,77916,94428,77902,94414,94296,112686,94284,94278,77870,94318,94252,94246,68336,99708,68216,99646,68156,68126,68476,68414,127162,123258,115450,99834,72416,101752,116414,72304,101692,72248,101662,72220,72206,67960,99518,72568,67900,72508,67870,72478,68030,72638,80576,105840,118460,80480,105784,118430,80432,105756,80408,105742,80396,80390,72048,101564,80752,71992,101534,80696,71964,80668,71950,80654,67772,72124,67742,80828,72094,80798,114016,122552,126814,96832,113968,122524,96800,113944,122510,96784,113932,96776,113926,96772,80224,105656,118366,97120,80176,105628,97072,114076,105614,97048,80140,97036,80134,97030,71864,101470,80312,71836,97208,80284,71822,97180,80270,97166,67678,71902,80350,97246,96576,113840,122460,96544,113816,122446,96528,113804,96520,113798,96516,96514,80048,105564,96688,80024,105550,96664,113870,96652,80006,96646,71772,80092,71758,96732,80078,96718,96416,113752,122414,96400,113740,96392,113734,96388,96386,79960,105518,96472,79948,96460,79942,96454,71726,79982,96494,96336,113708,96328,113702,96324,96322,79916,96364,79910,96358,96296,113686,96292,96290,79894,96310,66936,99006,66876,66846,67006,68976,100028,68920,99998,68892,68878,66748,69052,66718,69022,73056,102072,116574,73008,102044,72984,102030,72972,72966,68792,99934,73144,68764,73116,68750,73102,66654,68830,73182,81216,106160,118620,81184,106136,118606,81168,106124,81160,106118,81156,81154,72880,101980,81328,72856,101966,81304,106190,81292,72838,81286,68700,72924,68686,81372,72910,81358,114336,122712,126894,114320,122700,114312,122694,114308,114306,81056,106072,118574,97696,81040,106060,97680,114380,106054,97672,81028,97668,81026,97666,72792,101934,81112,72780,97752,81100,72774,97740,81094,97734,68654,72814,81134,97774,114256,122668,114248,122662,114244,114242,80976,106028,97488,80968,106022,97480,114278,97476,80962,97474,72748,81004,72742,97516,80998,97510,114216,122646,114212,114210,80936,106006,97384,80932,97380,80930,97378,72726,80950,97398,114196,114194,80916,97332,80914,97330,66236,66206,67256,99166,67228,67214,66142,67294,69296,100188,69272,100174,69260,69254,67164,69340,67150,69326,73376,102232,116654,73360,102220,73352,102214,73348,73346,69208,100142,73432,102254,73420,69190,73414,67118,69230,73454,106320,118700,106312,118694,106308,106306,73296,102188,81616,106348,102182,81608,73284,81604,73282,81602,69164,73324,69158,81644,73318,81638,122792,126934,122788,122786,106280,118678,114536,106276,114532,106274,114530,73256,102166,81512,73252,98024,81508,73250,98020,81506,98018,69142,73270,81526,98038,122772,122770,106260,114484,106258,114482,73236,81460,73234,97908,81458,97906,122762,106250,114458,73226,81434,97850,66396,66382,67416,99246,67404,67398,66350,67438,69456,100268,69448,100262,69444,69442,67372,69484,67366,69478,102312,116694,102308,102306,69416,100246,73576,102326,73572,69410,73570,67350,69430,73590,118740,118738,102292,106420,102290,106418,69396,73524,69394,81780,73522,81778,118730,102282,106394,69386,73498,81722,66476,66470,67496,99286,67492,67490,66454,67510,100308,100306,67476,69556,67474,69554,116714]],w=["ABCDEFGHIJKLMNOPQRSTUVWXYZ \u2000\u2002\u2001","abcdefghijklmnopqrstuvwxyz \u2005\u2002\u2001","0123456789&\r\t,:#-.$/+%*=^\u2004 \u2000\u2003\u2001",";<>@[\\]_`~!\r\t,:\n-.$/\"|*()?{}'\u2003"],k={al:{ll:[27],ml:[28],pl:[28,25]},ll:{al:[28,28],ml:[28],pl:[28,25]},ml:{al:[28],ll:[27],pl:[25]},pl:{al:[29],ll:[29,27],ml:[29,28]}},t.default={defaultConfig:b={errorCorrectionLevel:"auto",columns:"auto",rows:"auto",compact:!(d={ll:a="\u2000",ps:c="\u2001",ml:s="\u2002",al:f="\u2003",pl:l="\u2004",as:h="\u2005"}),height:60,quietZone:{top:2,left:2,right:2,bottom:2}},compaction:B,getIndicator:_,MODE_TC:y=e=900,MODE_BC:p=901,MODE_NC:g=902,MODE_BC6:m=924,MODE_BC_SHIFT:C=913,getTCValue:D,PAD:e,createModules:R,getPattern:N,START:n="11111111010101000",END:o="111111101000101001",getAutoECL:q,subModeMap:d,getTCSubModeValue:I,MAX_DATA_NUM:v=925,COMPACT_END:u="1",getAutoRowAndCol:L}},function(t,e,n){"use strict";var r,i;function o(t,e){var o,u,a,o=i[e],u=Math.pow(2,e+1),a=(0,r.fillArray)(new Array(u),0);return t.forEach(function(t){for(var e,n,r,i,e=t+a[u-1],n=void 0,r=void 0,i=u-1;0<i;--i)n=e*o[i]%929,a[i]=(a[i-1]+(r=929-n))%929;n=e*o[0]%929,a[0]=(r=929-n)%929}),a.forEach(function(t,e){0!=t&&(a[e]=929-t)}),a.reverse()}Object.defineProperty(e,"__esModule",{value:!0}),e.default=o,r=n(0),i=[[27,917],[522,568,723,809],[237,308,436,284,646,653,428,379],[274,562,232,755,599,524,801,132,295,116,442,428,295,42,176,65],[361,575,922,525,176,586,640,321,536,742,677,742,687,284,193,517,273,494,263,147,593,800,571,320,803,133,231,390,685,330,63,410],[539,422,6,93,862,771,453,106,610,287,107,505,733,877,381,612,723,476,462,172,430,609,858,822,543,376,511,400,672,762,283,184,440,35,519,31,460,594,225,535,517,352,605,158,651,201,488,502,648,733,717,83,404,97,280,771,840,629,4,381,843,623,264,543],[521,310,864,547,858,580,296,379,53,779,897,444,400,925,749,415,822,93,217,208,928,244,583,620,246,148,447,631,292,908,490,704,516,258,457,907,594,723,674,292,272,96,684,432,686,606,860,569,193,219,129,186,236,287,192,775,278,173,40,379,712,463,646,776,171,491,297,763,156,732,95,270,447,90,507,48,228,821,808,898,784,663,627,378,382,262,380,602,754,336,89,614,87,432,670,616,157,374,242,726,600,269,375,898,845,454,354,130,814,587,804,34,211,330,539,297,827,865,37,517,834,315,550,86,801,4,108,539],[524,894,75,766,882,857,74,204,82,586,708,250,905,786,138,720,858,194,311,913,275,190,375,850,438,733,194,280,201,280,828,757,710,814,919,89,68,569,11,204,796,605,540,913,801,700,799,137,439,418,592,668,353,859,370,694,325,240,216,257,284,549,209,884,315,70,329,793,490,274,877,162,749,812,684,461,334,376,849,521,307,291,803,712,19,358,399,908,103,511,51,8,517,225,289,470,637,731,66,255,917,269,463,830,730,433,848,585,136,538,906,90,2,290,743,199,655,903,329,49,802,580,355,588,188,462,10,134,628,320,479,130,739,71,263,318,374,601,192,605,142,673,687,234,722,384,177,752,607,640,455,193,689,707,805,641,48,60,732,621,895,544,261,852,655,309,697,755,756,60,231,773,434,421,726,528,503,118,49,795,32,144,500,238,836,394,280,566,319,9,647,550,73,914,342,126,32,681,331,792,620,60,609,441,180,791,893,754,605,383,228,749,760,213,54,297,134,54,834,299,922,191,910,532,609,829,189,20,167,29,872,449,83,402,41,656,505,579,481,173,404,251,688,95,497,555,642,543,307,159,924,558,648,55,497,10],[352,77,373,504,35,599,428,207,409,574,118,498,285,380,350,492,197,265,920,155,914,299,229,643,294,871,306,88,87,193,352,781,846,75,327,520,435,543,203,666,249,346,781,621,640,268,794,534,539,781,408,390,644,102,476,499,290,632,545,37,858,916,552,41,542,289,122,272,383,800,485,98,752,472,761,107,784,860,658,741,290,204,681,407,855,85,99,62,482,180,20,297,451,593,913,142,808,684,287,536,561,76,653,899,729,567,744,390,513,192,516,258,240,518,794,395,768,848,51,610,384,168,190,826,328,596,786,303,570,381,415,641,156,237,151,429,531,207,676,710,89,168,304,402,40,708,575,162,864,229,65,861,841,512,164,477,221,92,358,785,288,357,850,836,827,736,707,94,8,494,114,521,2,499,851,543,152,729,771,95,248,361,578,323,856,797,289,51,684,466,533,820,669,45,902,452,167,342,244,173,35,463,651,51,699,591,452,578,37,124,298,332,552,43,427,119,662,777,475,850,764,364,578,911,283,711,472,420,245,288,594,394,511,327,589,777,699,688,43,408,842,383,721,521,560,644,714,559,62,145,873,663,713,159,672,729,624,59,193,417,158,209,563,564,343,693,109,608,563,365,181,772,677,310,248,353,708,410,579,870,617,841,632,860,289,536,35,777,618,586,424,833,77,597,346,269,757,632,695,751,331,247,184,45,787,680,18,66,407,369,54,492,228,613,830,922,437,519,644,905,789,420,305,441,207,300,892,827,141,537,381,662,513,56,252,341,242,797,838,837,720,224,307,631,61,87,560,310,756,665,397,808,851,309,473,795,378,31,647,915,459,806,590,731,425,216,548,249,321,881,699,535,673,782,210,815,905,303,843,922,281,73,469,791,660,162,498,308,155,422,907,817,187,62,16,425,535,336,286,437,375,273,610,296,183,923,116,667,751,353,62,366,691,379,687,842,37,357,720,742,330,5,39,923,311,424,242,749,321,54,669,316,342,299,534,105,667,488,640,672,576,540,316,486,721,610,46,656,447,171,616,464,190,531,297,321,762,752,533,175,134,14,381,433,717,45,111,20,596,284,736,138,646,411,877,669,141,919,45,780,407,164,332,899,165,726,600,325,498,655,357,752,768,223,849,647,63,310,863,251,366,304,282,738,675,410,389,244,31,121,303,263]]},function(n,r,u){var a;!function(t){"use strict";var e,q=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,L=Math.ceil,Z=Math.floor,P=" not a boolean or binary digit",U="rounding mode",$="number type has more than 15 significant digits",G="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_",z=1e14,V=14,W=9007199254740991,X=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],H=1e7,Q=1e9;function i(t){var d,s,p=0,e=T.prototype,v=new T(1),w=20,b=4,c=-7,a=21,y=-1e7,g=1e7,m=!0,f=D,l=!1,h=1,C=0,k={decimalSeparator:".",groupSeparator:",",groupSize:3,secondaryGroupSize:0,fractionGroupSeparator:"\xa0",fractionGroupSize:0},n,A,u,O,E,j,S;function T(t,e){var n,r,i,o,u,a,c=this;if(!(c instanceof T))return new T(t,e);if(null!=e&&f(e,2,64,p,"base")){if(a=t+"",10==(e|=0))return R(c=new T(t instanceof T?t:a),w+c.e+1,b);if((o="number"==typeof t)&&0*t!=0||!new RegExp("^-?"+(n="["+G.slice(0,e)+"]+")+"(?:\\."+n+")?$",e<37?"i":"").test(a))return s(c,a,o,e);o?(c.s=1/t<0?(a=a.slice(1),-1):1,m&&15<a.replace(/^0\.0*|\./,"").length&&F(p,$,t),o=!1):c.s=45===a.charCodeAt(0)?(a=a.slice(1),-1):1,a=x(a,10,e,c.s)}else{if(t instanceof T)return c.s=t.s,c.e=t.e,c.c=(t=t.c)&&t.slice(),void(p=0);if((o="number"==typeof t)&&0*t==0){if(c.s=1/t<0?(t=-t,-1):1,t===~~t){for(r=0,i=t;10<=i;i/=10,r++);return c.e=r,c.c=[t],void(p=0)}a=t+""}else{if(!q.test(a=t+""))return s(c,a,o);c.s=45===a.charCodeAt(0)?(a=a.slice(1),-1):1}}for(0<(i=(a=-1<(r=a.indexOf("."))?a.replace(".",""):a).search(/e/i))?(r<0&&(r=i),r+=+a.slice(i+1),a=a.substring(0,i)):r<0&&(r=a.length),i=0;48===a.charCodeAt(i);i++);for(u=a.length;48===a.charCodeAt(--u););if(a=a.slice(i,u+1))if(u=a.length,o&&m&&15<u&&(W<t||t!==Z(t))&&F(p,$,c.s*t),g<(r=r-i-1))c.c=c.e=null;else if(r<y)c.c=[c.e=0];else{if(c.e=r,c.c=[],i=(r+1)%V,r<0&&(i+=V),i<u){for(i&&c.c.push(+a.slice(0,i)),u-=V;i<u;)c.c.push(+a.slice(i,i+=V));a=a.slice(i),i=V-a.length}else i-=u;for(;i--;a+="0");c.c.push(+a)}else c.c=[c.e=0];p=0}function x(t,e,n,r){var i,o,u,a,c,s,f,l=t.indexOf("."),h=w,v=b;for(n<37&&(t=t.toLowerCase()),0<=l&&(u=C,C=0,t=t.replace(".",""),c=(f=new T(n)).pow(t.length-l),C=u,f.c=e1(r1(J(c.c),c.e),10,e),f.e=f.c.length),o=u=(s=e1(t,n,e)).length;0==s[--u];s.pop());if(!s[0])return"0";if(l<0?--o:(c.c=s,c.e=o,c.s=r,s=(c=d(c,f,h,v,e)).c,a=c.r,o=c.e),l=s[i=o+h+1],u=e/2,a=a||i<0||null!=s[i+1],a=v<4?(null!=l||a)&&(0==v||v==(c.s<0?3:2)):u<l||l==u&&(4==v||a||6==v&&1&s[i-1]||v==(c.s<0?8:7)),i<1||!s[0])t=a?r1("1",-h):"0";else{if(s.length=i,a)for(--e;++s[--i]>e;)s[i]=0,i||(++o,s=[1].concat(s));for(u=s.length;!s[--u];);for(l=0,t="";l<=u;t+=G.charAt(s[l++]));t=r1(t,o)}return t}function M(t,e,n){var r,i,o,o,u=0,a=t.length,c=e%H,s=e/H|0;for(t=t.slice();a--;)u=((i=c*(o=t[a]%H)+(r=s*o+(o=t[a]/H|0)*c)%H*H+u)/n|0)+(r/H|0)+s*o,t[a]=i%n;return t=u?[u].concat(t):t}function B(t,e,n,r){var i,o;if(n!=r)o=r<n?1:-1;else for(i=o=0;i<n;i++)if(t[i]!=e[i]){o=t[i]>e[i]?1:-1;break}return o}function _(t,e,n,r){for(var i=0;n--;)t[n]-=i,i=t[n]<e[n]?1:0,t[n]=i*r+t[n]-e[n];for(;!t[0]&&1<t.length;t.splice(0,1));}function N(t,e,n,r){var i,n,o,u,a;if(n=null!=n&&f(n,0,8,r,U)?0|n:b,!t.c)return t.toString();if(i=t.c[0],o=t.e,null==e)a=J(t.c),a=(19==r||24==r&&o<=c?n1:r1)(a,o);else if(n=(t=R(new T(t),e,n)).e,u=(a=J(t.c)).length,19==r||24==r&&(e<=n||n<=c)){for(;u<e;a+="0",u++);a=n1(a,n)}else if(e-=o,a=r1(a,n),u<n+1){if(0<--e)for(a+=".";e--;a+="0");}else if(0<(e+=n-u))for(n+1==u&&(a+=".");e--;a+="0");return t.s<0&&i?"-"+a:a}function r(t,e){for(var n,r,i=0,n=new T((t=t1(t[0])?t[0]:t)[0]);++i<t.length;){if(!(r=new T(t[i])).s){n=r;break}e.call(n,r)&&(n=r)}return n}function D(t,e,n,r,i){return(t<e||n<t||t!=i1(t))&&F(r,(i||"decimal places")+(t<e||n<t?" out of range":" not an integer"),t),!0}function I(t,e,n){for(var r=1,i=e.length;!e[--i];e.pop());for(i=e[0];10<=i;i/=10,r++);return(n=r+n*V-1)>g?t.c=t.e=null:n<y?t.c=[t.e=0]:(t.e=n,t.c=e),t}function F(t,e,n){var t=new Error(["new BigNumber","cmp","config","div","divToInt","eq","gt","gte","lt","lte","minus","mod","plus","precision","random","round","shift","times","toDigits","toExponential","toFixed","toFormat","toFraction","pow","toPrecision","toString","BigNumber"][t]+"() "+e+": "+n);throw t.name="BigNumber Error",p=0,t}function R(t,e,n,r){var i,o,u,a,c,s,f,l=t.c,h=X;if(l){t:{for(i=1,a=l[0];10<=a;a/=10,i++);if((o=e-i)<0)o+=V,u=e,f=(c=l[s=0])/h[i-u-1]%10|0;else if((s=L((o+1)/V))>=l.length){if(!r)break t;for(;l.length<=s;l.push(0));c=f=0,u=(o%=V)-V+(i=1)}else{for(c=a=l[s],i=1;10<=a;a/=10,i++);f=(u=(o%=V)-V+i)<0?0:c/h[i-u-1]%10|0}if(r=r||e<0||null!=l[s+1]||(u<0?c:c%h[i-u-1]),r=n<4?(f||r)&&(0==n||n==(t.s<0?3:2)):5<f||5==f&&(4==n||r||6==n&&(0<o?0<u?c/h[i-u]:0:l[s-1])%10&1||n==(t.s<0?8:7)),e<1||!l[0])return l.length=0,r?(e-=t.e+1,l[0]=h[(V-e%V)%V],t.e=-e||0):l[0]=t.e=0,t;if(0==o?(l.length=s,a=1,s--):(l.length=s+1,a=h[V-o],l[s]=0<u?Z(c/h[i-u]%h[u])*a:0),r)for(;;){if(0==s){for(o=1,u=l[0];10<=u;u/=10,o++);for(u=l[0]+=a,a=1;10<=u;u/=10,a++);o!=a&&(t.e++,l[0]==z)&&(l[0]=1);break}if(l[s]+=a,l[s]!=z)break;l[s--]=0,a=1}for(o=l.length;0===l[--o];l.pop());}t.e>g?t.c=t.e=null:t.e<y&&(t.c=[t.e=0])}return t}return T.another=i,T.ROUND_UP=0,T.ROUND_DOWN=1,T.ROUND_CEIL=2,T.ROUND_FLOOR=3,T.ROUND_HALF_UP=4,T.ROUND_HALF_DOWN=5,T.ROUND_HALF_EVEN=6,T.ROUND_HALF_CEIL=7,T.ROUND_HALF_FLOOR=8,T.EUCLID=9,T.config=T.set=function(){var t,e,n=0,r={},i=arguments,o=i[0],u=o&&"object"==typeof o?function(){if(o.hasOwnProperty(e))return null!=(t=o[e])}:function(){if(n<i.length)return null!=(t=i[n++])};return u(e="DECIMAL_PLACES")&&f(t,0,Q,2,e)&&(w=0|t),r[e]=w,u(e="ROUNDING_MODE")&&f(t,0,8,2,e)&&(b=0|t),r[e]=b,u(e="EXPONENTIAL_AT")&&(t1(t)?f(t[0],-Q,0,2,e)&&f(t[1],0,Q,2,e)&&(c=0|t[0],a=0|t[1]):f(t,-Q,Q,2,e)&&(c=-(a=0|(t<0?-t:t)))),r[e]=[c,a],u(e="RANGE")&&(t1(t)?f(t[0],-Q,-1,2,e)&&f(t[1],1,Q,2,e)&&(y=0|t[0],g=0|t[1]):f(t,-Q,Q,2,e)&&(0|t?y=-(g=0|(t<0?-t:t)):m&&F(2,e+" cannot be zero",t))),r[e]=[y,g],u(e="ERRORS")&&(t===!!t||1===t||0===t?(p=0,f=(m=!!t)?D:Y):m&&F(2,e+P,t)),r[e]=m,u(e="CRYPTO")&&(!0===t||!1===t||1===t||0===t?t?!(t="undefined"==typeof crypto)&&crypto&&(crypto.getRandomValues||crypto.randomBytes)?l=!0:m?F(2,"crypto unavailable",t?void 0:crypto):l=!1:l=!1:m&&F(2,e+P,t)),r[e]=l,u(e="MODULO_MODE")&&f(t,0,9,2,e)&&(h=0|t),r[e]=h,u(e="POW_PRECISION")&&f(t,0,Q,2,e)&&(C=0|t),r[e]=C,u(e="FORMAT")&&("object"==typeof t?k=t:m&&F(2,e+" not an object",t)),r[e]=k,r},T.max=function(){return r(arguments,e.lt)},T.min=function(){return r(arguments,e.gt)},T.random=(n=9007199254740992,A=Math.random()*n&2097151?function(){return Z(Math.random()*n)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(t){var e,n,r,i,o,u=0,a=[],c=new T(v);if(t=null!=t&&f(t,0,Q,14)?0|t:w,i=L(t/V),l)if(crypto.getRandomValues){for(e=crypto.getRandomValues(new Uint32Array(i*=2));u<i;)9e15<=(o=131072*e[u]+(e[u+1]>>>11))?(n=crypto.getRandomValues(new Uint32Array(2)),e[u]=n[0],e[u+1]=n[1]):(a.push(o%1e14),u+=2);u=i/2}else if(crypto.randomBytes){for(e=crypto.randomBytes(i*=7);u<i;)9e15<=(o=281474976710656*(31&e[u])+1099511627776*e[u+1]+4294967296*e[u+2]+16777216*e[u+3]+(e[u+4]<<16)+(e[u+5]<<8)+e[u+6])?crypto.randomBytes(7).copy(e,u):(a.push(o%1e14),u+=7);u=i/7}else l=!1,m&&F(14,"crypto unavailable",crypto);if(!l)for(;u<i;)(o=A())<9e15&&(a[u++]=o%1e14);for(i=a[--u],t%=V,i&&t&&(a[u]=Z(i/(o=X[V-t]))*o);0===a[u];a.pop(),u--);if(u<0)a=[r=0];else{for(r=-1;0===a[0];a.splice(0,1),r-=V);for(u=1,o=a[0];10<=o;o/=10,u++);u<V&&(r-=V-u)}return c.e=r,c.c=a,c}),d=function(t,e,n,r,i){var o,u,a,c,s,f,l,h,v,d,w,b,y,p,g,m,C,k=t.s==e.s?1:-1,A=t.c,O=e.c;if(!(A&&A[0]&&O&&O[0]))return new T(t.s&&e.s&&(A?!O||A[0]!=O[0]:O)?A&&0==A[0]||!O?0*k:k/0:NaN);for(v=(h=new T(k)).c=[],k=n+(u=t.e-e.e)+1,i||(i=z,u=K(t.e/V)-K(e.e/V),k=k/V|0),a=0;O[a]==(A[a]||0);a++);if(O[a]>(A[a]||0)&&u--,k<0)v.push(1),c=!0;else{for(p=A.length,m=O.length,k+=2,1<(s=Z(i/(O[a=0]+1)))&&(O=M(O,s,i),A=M(A,s,i),m=O.length,p=A.length),y=m,w=(d=A.slice(0,m)).length;w<m;d[w++]=0);C=O.slice(),C=[0].concat(C),g=O[0],O[1]>=i/2&&g++;do{if(s=0,(o=B(O,d,m,w))<0){if(b=d[0],m!=w&&(b=b*i+(d[1]||0)),1<(s=Z(b/g)))for(l=(f=M(O,s=i<=s?i-1:s,i)).length,w=d.length;1==B(f,d,l,w);)s--,_(f,m<l?C:O,l,i),l=f.length,o=1;else 0==s&&(o=s=1),l=(f=O.slice()).length;if(_(d,f=l<w?[0].concat(f):f,w,i),w=d.length,-1==o)for(;B(O,d,m,w)<1;)s++,_(d,m<w?C:O,w,i),w=d.length}else 0===o&&(s++,d=[0])}while(v[a++]=s,d[0]?d[w++]=A[y]||0:(d=[A[y]],w=1),(y++<p||null!=d[0])&&k--);c=null!=d[0],v[0]||v.splice(0,1)}if(i==z){for(a=1,k=v[0];10<=k;k/=10,a++);R(h,n+(h.e=a+u*V-1)+1,r,c)}else h.e=u,h.r=+c;return h},u=/^(-?)0([xbo])(?=\w[\w.]*$)/i,O=/^([^.]+)\.$/,E=/^\.([^.]+)$/,j=/^-?(Infinity|NaN)$/,S=/^\s*\+(?=[\w.])|^\s+|\s+$/g,s=function(t,e,n,r){var i,o=n?e:e.replace(S,"");if(j.test(o))t.s=isNaN(o)?null:o<0?-1:1;else{if(!n&&(o=o.replace(u,function(t,e,n){return i="x"==(n=n.toLowerCase())?16:"b"==n?2:8,r&&r!=i?t:e}),r&&(i=r,o=o.replace(O,"$1").replace(E,"0.$1")),e!=o))return new T(o,i);m&&F(p,"not a"+(r?" base "+r:"")+" number",e),t.s=null}t.c=t.e=null,p=0},e.absoluteValue=e.abs=function(){var t=new T(this);return t.s<0&&(t.s=1),t},e.ceil=function(){return R(new T(this),this.e+1,2)},e.comparedTo=e.cmp=function(t,e){return p=1,o(this,new T(t,e))},e.decimalPlaces=e.dp=function(){var t,e,n=this.c;if(!n)return null;if(t=((e=n.length-1)-K(this.e/V))*V,e=n[e])for(;e%10==0;e/=10,t--);return t=t<0?0:t},e.dividedBy=e.div=function(t,e){return p=3,d(this,new T(t,e),w,b)},e.dividedToIntegerBy=e.divToInt=function(t,e){return p=4,d(this,new T(t,e),0,1)},e.equals=e.eq=function(t,e){return p=5,0===o(this,new T(t,e))},e.floor=function(){return R(new T(this),this.e+1,3)},e.greaterThan=e.gt=function(t,e){return p=6,0<o(this,new T(t,e))},e.greaterThanOrEqualTo=e.gte=function(t,e){return p=7,1===(e=o(this,new T(t,e)))||0===e},e.isFinite=function(){return!!this.c},e.isInteger=e.isInt=function(){return!!this.c&&K(this.e/V)>this.c.length-2},e.isNaN=function(){return!this.s},e.isNegative=e.isNeg=function(){return this.s<0},e.isZero=function(){return!!this.c&&0==this.c[0]},e.lessThan=e.lt=function(t,e){return p=8,o(this,new T(t,e))<0},e.lessThanOrEqualTo=e.lte=function(t,e){return p=9,-1===(e=o(this,new T(t,e)))||0===e},e.minus=e.sub=function(t,e){var n,r,i,o,u,a,c,s,f,l,u=this,a=u.s;if(p=10,e=(t=new T(t,e)).s,!a||!e)return new T(NaN);if(a!=e)return t.s=-e,u.plus(t);if(c=u.e/V,s=t.e/V,f=u.c,l=t.c,!c||!s){if(!f||!l)return f?(t.s=-e,t):new T(l?u:NaN);if(!f[0]||!l[0])return l[0]?(t.s=-e,t):new T(f[0]?u:3==b?-0:0)}if(c=K(c),s=K(s),f=f.slice(),a=c-s){for((i=(o=a<0)?(a=-a,f):(s=c,l)).reverse(),e=a;e--;i.push(0));i.reverse()}else for(r=(o=(a=f.length)<(e=l.length))?a:e,a=e=0;e<r;e++)if(f[e]!=l[e]){o=f[e]<l[e];break}if(o&&(i=f,f=l,l=i,t.s=-t.s),0<(e=(r=l.length)-(n=f.length)))for(;e--;f[n++]=0);for(e=z-1;a<r;){if(f[--r]<l[r]){for(n=r;n&&!f[--n];f[n]=e);--f[n],f[r]+=z}f[r]-=l[r]}for(;0==f[0];f.splice(0,1),--s);return f[0]?I(t,f,s):(t.s=3==b?-1:1,t.c=[t.e=0],t)},e.modulo=e.mod=function(t,e){var n,e,r=this;return p=11,t=new T(t,e),!r.c||!t.s||t.c&&!t.c[0]?new T(NaN):!t.c||r.c&&!r.c[0]?new T(r):(9==h?(e=t.s,t.s=1,n=d(r,t,0,3),t.s=e,n.s*=e):n=d(r,t,0,h),r.minus(n.times(t)))},e.negated=e.neg=function(){var t=new T(this);return t.s=-t.s||null,t},e.plus=e.add=function(t,e){var n,r,i,o,u,a,c,r=this,i=r.s;if(p=12,e=(t=new T(t,e)).s,!i||!e)return new T(NaN);if(i!=e)return t.s=-e,r.minus(t);if(o=r.e/V,u=t.e/V,a=r.c,c=t.c,!o||!u){if(!a||!c)return new T(i/0);if(!a[0]||!c[0])return c[0]?t:new T(a[0]?r:0*i)}if(o=K(o),u=K(u),a=a.slice(),i=o-u){for((n=0<i?(u=o,c):(i=-i,a)).reverse();i--;n.push(0));n.reverse()}for((i=a.length)-(e=c.length)<0&&(n=c,c=a,a=n,e=i),i=0;e;)i=(a[--e]=a[e]+c[e]+i)/z|0,a[e]=z===a[e]?0:a[e]%z;return i&&(a=[i].concat(a),++u),I(t,a,u)},e.precision=e.sd=function(t){var e,n,r=this,i=r.c;if(null!=t&&t!==!!t&&1!==t&&0!==t&&(m&&F(13,"argument"+P,t),t!=!!t)&&(t=null),!i)return null;if(e=(n=i.length-1)*V+1,n=i[n]){for(;n%10==0;n/=10,e--);for(n=i[0];10<=n;n/=10,e++);}return e=t&&r.e+1>e?r.e+1:e},e.round=function(t,e){var n=new T(this);return null!=t&&!f(t,0,Q,15)||R(n,~~t+this.e+1,null!=e&&f(e,0,8,15,U)?0|e:b),n},e.shift=function(t){var e=this;return f(t,-W,W,16,"argument")?e.times("1e"+i1(t)):new T(e.c&&e.c[0]&&(t<-W||W<t)?e.s*(t<0?0:1/0):e)},e.squareRoot=e.sqrt=function(){var t,e,n,r,i,o=this,u=o.c,a=o.s,c=o.e,s=w+4,f=new T("0.5");if(1!==a||!u||!u[0])return new T(!a||a<0&&(!u||u[0])?NaN:u?o:1/0);if((n=0==(a=Math.sqrt(+o))||a==1/0?(((e=J(u)).length+c)%2==0&&(e+="0"),a=Math.sqrt(e),c=K((c+1)/2)-(c<0||c%2),new T(e=a==1/0?"1e"+c:(e=a.toExponential()).slice(0,e.indexOf("e")+1)+c)):new T(a+"")).c[0])for((a=(c=n.e)+s)<3&&(a=0);;)if(i=n,n=f.times(i.plus(d(o,i,s,1))),J(i.c).slice(0,a)===(e=J(n.c)).slice(0,a)){if(n.e<c&&--a,"9999"!=(e=e.slice(a-3,a+1))&&(r||"4999"!=e)){+e&&(+e.slice(1)||"5"!=e.charAt(0))||(R(n,n.e+w+2,1),t=!n.times(n).eq(o));break}if(!r&&(R(i,i.e+w+2,0),i.times(i).eq(o))){n=i;break}s+=4,a+=4,r=1}return R(n,n.e+w+1,b,t)},e.times=e.mul=function(t,e){var n,e,r,i,o,u,a,c,s,f,l,h,v,d,w,f=this,b=f.c,y=(p=17,(t=new T(t,e)).c);if(!(b&&y&&b[0]&&y[0]))return!f.s||!t.s||b&&!b[0]&&!y||y&&!y[0]&&!b?t.c=t.e=t.s=null:(t.s*=f.s,b&&y?(t.c=[0],t.e=0):t.c=t.e=null),t;for(e=K(f.e/V)+K(t.e/V),t.s*=f.s,(a=b.length)<(f=y.length)&&(v=b,b=y,y=v,r=a,a=f,f=r),r=a+f,v=[];r--;v.push(0));for(d=z,w=H,r=f;0<=--r;){for(l=y[r]%w,h=y[r]/w|(n=0),i=r+(o=a);r<i;)n=((c=l*(c=b[--o]%w)+(u=h*c+(s=b[o]/w|0)*l)%w*w+v[i]+n)/d|0)+(u/w|0)+h*s,v[i--]=c%d;v[i]=n}return n?++e:v.splice(0,1),I(t,v,e)},e.toDigits=function(t,e){var n=new T(this);return t=null!=t&&f(t,1,Q,18,"precision")?0|t:null,e=null!=e&&f(e,0,8,18,U)?0|e:b,t?R(n,t,e):n},e.toExponential=function(t,e){return N(this,null!=t&&f(t,0,Q,19)?1+~~t:null,e,19)},e.toFixed=function(t,e){return N(this,null!=t&&f(t,0,Q,20)?~~t+this.e+1:null,e,20)},e.toFormat=function(t,e){var t,n,e,r,i,o,u,e,a,c,s,t=N(this,null!=t&&f(t,0,Q,21)?~~t+this.e+1:null,e,21);if(this.c){if(e=t.split("."),r=+k.groupSize,i=+k.secondaryGroupSize,o=k.groupSeparator,u=e[0],e=e[1],s=(c=(a=this.s<0)?u.slice(1):u).length,i&&(n=r,r=i,s-=i=n),0<r&&0<s){for(u=c.substr(0,n=s%r||r);n<s;n+=r)u+=o+c.substr(n,r);0<i&&(u+=o+c.slice(n)),a&&(u="-"+u)}t=e?u+k.decimalSeparator+((i=+k.fractionGroupSize)?e.replace(new RegExp("\\d{"+i+"}\\B","g"),"$&"+k.fractionGroupSeparator):e):u}return t},e.toFraction=function(t){var e,n,r,i,o,u,a,c,e,e=m,s=this,i=s.c,f=new T(v),l=n=new T(v),h=a=new T(v);if(null!=t&&(m=!1,u=new T(t),m=e,(e=u.isInt())&&!u.lt(v)||(m&&F(22,"max denominator "+(e?"out of range":"not an integer"),t),t=!e&&u.c&&R(u,u.e+1,1).gte(v)?u:null)),!i)return s.toString();for(e=J(i),i=f.e=e.length-s.e-1,f.c[0]=X[(o=i%V)<0?V+o:o],t=!t||0<u.cmp(f)?0<i?f:l:u,o=g,g=1/0,u=new T(e),a.c[0]=0;c=d(u,f,0,1),1!=(r=n.plus(c.times(h))).cmp(t);)n=h,h=r,l=a.plus(c.times(r=l)),a=r,f=u.minus(c.times(r=f)),u=r;return r=d(t.minus(n),h,0,1),a=a.plus(r.times(l)),n=n.plus(r.times(h)),a.s=l.s=s.s,e=d(l,h,i*=2,b).minus(s).abs().cmp(d(a,n,i,b).minus(s).abs())<1?[l.toString(),h.toString()]:[a.toString(),n.toString()],g=o,e},e.toNumber=function(){return+this},e.toPower=e.pow=function(t,e){var n,r,i,o=Z(t<0?-t:+t),u=this;if(null!=e&&(p=23,e=new T(e)),!f(t,-W,W,23,"exponent")&&(!isFinite(t)||W<o&&(t/=0)||parseFloat(t)!=t&&!(t=NaN))||0==t)return n=Math.pow(+u,t),new T(e?n%e:n);for(e?1<t&&u.gt(v)&&u.isInt()&&e.gt(v)&&e.isInt()?u=u.mod(e):(i=e,e=null):C&&(n=L(C/V+2)),r=new T(v);;){if(o%2){if(!(r=r.times(u)).c)break;n?r.c.length>n&&(r.c.length=n):e&&(r=r.mod(e))}if(!(o=Z(o/2)))break;u=u.times(u),n?u.c&&u.c.length>n&&(u.c.length=n):e&&(u=u.mod(e))}return e?r:(t<0&&(r=v.div(r)),i?r.mod(i):n?R(r,C,b):r)},e.toPrecision=function(t,e){return N(this,null!=t&&f(t,1,Q,24,"precision")?0|t:null,e,24)},e.toString=function(t){var e,n=this,r=n.s,i=n.e;return null===i?r?(e="Infinity",r<0&&(e="-"+e)):e="NaN":(e=J(n.c),e=null!=t&&f(t,2,64,25,"base")?x(r1(e,i),0|t,10,r):(i<=c||a<=i?n1:r1)(e,i),r<0&&n.c[0]&&(e="-"+e)),e},e.truncated=e.trunc=function(){return R(new T(this),this.e+1,1)},e.valueOf=e.toJSON=function(){var t,e=this,n=e.e;return null===n?e.toString():(t=J(e.c),t=(n<=c||a<=n?n1:r1)(t,n),e.s<0?"-"+t:t)},e.isBigNumber=!0,null!=t&&T.config(t),T}function K(t){var e=0|t;return 0<t||t===e?e:e-1}function J(t){for(var e,n,r=1,i=t.length,o=t[0]+"";r<i;){for(e=t[r++]+"",n=V-e.length;n--;e="0"+e);o+=e}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function o(t,e){var n,r,i=t.c,o=e.c,u=t.s,a=e.s,t=t.e,e=e.e;if(!u||!a)return null;if(n=i&&!i[0],r=o&&!o[0],n||r)return n?r?0:-a:u;if(u!=a)return u;if(n=u<0,r=t==e,!i||!o)return r?0:!i^n?1:-1;if(!r)return e<t^n?1:-1;for(a=(t=i.length)<(e=o.length)?t:e,u=0;u<a;u++)if(i[u]!=o[u])return i[u]>o[u]^n?1:-1;return t==e?0:e<t^n?1:-1}function Y(t,e,n){return(t=i1(t))>=e&&t<=n}function t1(t){return"[object Array]"==Object.prototype.toString.call(t)}function e1(t,e,n){for(var r,i=[0],o,u=0,a=t.length;u<a;){for(o=i.length;o--;i[o]*=e);for(i[r=0]+=G.indexOf(t.charAt(u++));r<i.length;r++)n-1<i[r]&&(null==i[r+1]&&(i[r+1]=0),i[r+1]+=i[r]/n|0,i[r]%=n)}return i.reverse()}function n1(t,e){return(1<t.length?t.charAt(0)+"."+t.slice(1):t)+(e<0?"e":"e+")+e}function r1(t,e){var n,r;if(e<0){for(r="0.";++e;r+="0");t=r+t}else if(++e>(n=t.length)){for(r="0",e-=n;--e;r+="0");t+=r}else e<n&&(t=t.slice(0,e)+"."+t.slice(e));return t}function i1(t){return((t=parseFloat(t))<0?L:Z)(t)}(e=i()).default=e.BigNumber=e,void 0!==(a=function(){return e}.call(r,u,r,n))&&(n.exports=a)}(this)},function(t,e,n){"use strict";var r,i,i,o,u,a,c,a,s,a,f,l,h,a,v;function d(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function w(t){return t&&t.__esModule?t:{default:t}}function b(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function p(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function g(t){var t,e,n;return b(this,g),e=void 0,n=(e=new("2"==(t=y(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,t,c.default.defaultConfig))).config.model?f:s).default(t.config)).getMatrix(),t.adjustDesiredSize(n),t.convertToShape(n),t}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&d(t.prototype,e),n&&d(t,n),t},i=n(7),i=w(i),u=w(o=n(2)),a=n(3),c=w(a),a=n(54),s=w(a),a=n(56),f=w(a),l=n(1),h=n(0),p(g,v=i.default),r(g,[{key:"validate",value:function t(){var e=this.config,n=e.version,r=e.model,i=e.charset,o=e.text,u=e.charCode,e=e.connectionNo;if(!(o||u&&0!==u.length))throw new l.InvalidTextException(o);if("1"!=r&&"2"!=r)throw new l.BadArgumentsException({model:r});if("UTF-8"!=i&&"Shift_JIS"!=i)throw new l.BadArgumentsException({charset:i});if("1"==r&&(0,h.isNumberLike)(n)&&(n<1||14<n))throw new l.BadArgumentsException({version:n},"Model 1 only support version 1 - 14.");if("2"==r&&(0,h.isNumberLike)(n)&&(n<1||40<n))throw new l.BadArgumentsException({version:n},"Model 2 only support version 1 - 40.");if(15<e||e<0)throw new l.BadArgumentsException({connectionNo:e},"ConnectionNo is in range 0 - 15.")}}]),a=g,e.default=a,u.default.registerEncoder("QRCode",a)},function(t,e,n){"use strict";var r,a,i,f,i,i,o,c,o,s,o,l,o,h,o,v,n,u;function d(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function w(t){return t&&t.__esModule?t:{default:t}}function b(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function p(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function g(){return b(this,g),y(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&d(t.prototype,e),n&&d(t,n),t},a=n(0),i=n(3),f=w(i),i=n(14),i=w(i),o=n(15),c=w(o),o=n(16),s=w(o),o=n(17),l=w(o),o=n(18),h=w(o),o=n(19),v=w(o),p(g,u=i.default),r(g,[{key:"encodeData",value:function t(e,n){var r,i,o,u,r=this,i=this.charCountIndicatorBitsNumber,o=this.charCode,u=new v.default;return u.put(0,4),n&&(u.put(f.default.MODE_INDICATOR.StructuredAppend,4),u.put(n.connectionNo,4),u.put(n.connectionCnt-1,4),u.put(f.default.getParityData(o,this.config.charset),8)),e.forEach(function(t){if(t.code){var e=void 0;switch(t.mode){case"Numeric":e=new s.default(t.code);break;case"Alphanumeric":e=new l.default(t.code);break;case"8BitByte":e=new c.default(t.code,r.config.charset);break;case"Kanji":e=new h.default(t.code)}u.put(e.getMode(),4),u.put(e.getLength(),i[e.mode]),e.write(u)}}),u}},{key:"getFinalMessage",value:function t(e){var n,r,e,n=[],r=e.map(function(t){return t.data}),e=e.map(function(t){return t.ec});return r.forEach(function(t){return n=n.concat(t)}),e.forEach(function(t){return n=n.concat(t)}),n}},{key:"setModules",value:function t(e){var n=this.modulesCount;this.modules=f.default.createModules(n),this.addPositionDetectionPattern(),this.addExtensionPattern(),this.addTimingPattern(),this.maskModules(e)}},{key:"maskModules",value:function t(e){var n,r,i,o,u,n,n=this.modules,r=this.errorCorrectionLevel,i=this.model,o=this.config.mask;"auto"===o&&(o=this.autoMask(e)),u=f.default.getMaskFunc(o),this.maskPattern=o,n=f.default.addFormatInformation(n,o,r,i),this.modules=this.fillDataModules(n,e,u)}},{key:"autoMask",value:function t(r){var i,o,u,a,c,s,i=this,o=this.modules,u=this.errorCorrectionLevel,a=this.model,c=void 0,s=void 0;return f.default.maskFuncs.forEach(function(t,e){var n,n,t,n=f.default.addFormatInformation(o,e,u,a,!0),n=i.fillDataModules(n,r,t),t=f.default.getMaskScore(n);(!c||t<c)&&(c=t,s=e)}),s}},{key:"addExtensionPattern",value:function t(){var e,n,r,i,o,u,e=this.modules,n=this.version,r=e.length;if(e[r-1][r-1]=1,e[r-2][r-1]=0,e[r-1][r-2]=0,e[r-2][r-2]=0,i=Math.floor(n/2),(0,a.isEven)(n))for(o=0;o<i;o++)this.addBaseExtension(13+8*o),this.addRightExtension(13+8*o);else for(u=0;u<i;u++)this.addBaseExtension(17+8*u),this.addRightExtension(17+8*u)}},{key:"addBaseExtension",value:function t(e){var n,r,i,r,n=this.modules,r=n.length,i=r-2,r=r-1;n[i][e]=0,n[i][e+1]=0,n[i][e+2]=0,n[i][e+3]=0,n[r][e]=1,n[r][e+1]=1,n[r][e+2]=1,n[r][e+3]=1}},{key:"addRightExtension",value:function t(e){var n,r,i,r,n=this.modules,r=n.length,i=r-2,r=r-1;n[e][i]=0,n[e+1][i]=0,n[e+2][i]=0,n[e+3][i]=0,n[e][r]=1,n[e+1][r]=1,n[e+2][r]=1,n[e+3][r]=1}},{key:"fillDataModules",value:function t(e,n,r){var i,o,u,a,c,s,f,i=e.length,o=void 0,u=void 0;for(o=u=i-1,a=2,(c=new v.default(n)).next(),c.next(),c.next(),c.next();0<=o;){if(o==i-5)a=4;else if(8==o)a=2;else if(6==o){o--;continue}for(;0<=u;){if(null!==e[u][o]);else{for(s=0;s<a;s++)f=c.next(),r(u,o-s)&&(f=!f),e[u][o-s]=+f}u--}o-=a,u=i-1}return e}},{key:"getMatrix",value:function t(){var e,e,e,e,e,e,e=this.charCode,e=this.analysisData(e),e=this.encodeData(e),e=this.processConnection(e);return this.padBuffer(e),e=this.generateErrorCorrectionCode(e),e=this.getFinalMessage(e),this.setModules(e),this.modules}}]),n=g,e.default=n},function(t,e,n){"use strict";var h,r,i,v,o,d;for(Object.defineProperty(e,"__esModule",{value:!0}),e.default=u,h=new Array(256),r=0;r<8;r++)h[r]=1<<r;for(i=8;i<256;i++)h[i]=h[i-4]^h[i-5]^h[i-6]^h[i-8];for(v=new Array(256),o=0;o<255;o+=1)v[h[o]]=o;function u(t,e,n){for(var r,i,o,u,a,c,s,f,l,r=[],i=d[e],o=t.slice(0),u=0;u<n;u++){if(0!=o[0]){for(a=v[o[0]],c=0;c<=i.length-1;c++){for(s=i[c]+a;255<=s;)s-=255;r[c]=h[s]}for(f=0;f<=i.length-1;f++)o[f]=o[f]^r[f]}for(l=1;l<o.length;l++)o[l-1]=o[l];o[o.length-1]=0}return o.slice(0,e)}d=[null,null,null,null,null,null,null,[0,87,229,146,149,238,102,21],null,null,[0,251,67,46,61,118,70,64,94,32,45],null,null,[0,74,152,176,100,86,100,106,104,130,218,206,140,78],null,[0,8,183,61,91,202,37,51,58,58,237,140,124,5,99,105],[0,120,104,107,109,102,161,76,3,91,191,147,169,182,194,225,120],[0,43,139,206,78,43,239,123,206,214,147,24,99,150,39,243,163,136],[0,215,234,158,94,184,97,118,170,79,187,152,148,252,179,5,98,96,153],null,[0,17,60,79,50,61,163,26,187,202,180,221,225,83,239,156,164,212,212,188,190],null,[0,210,171,247,242,93,230,14,109,221,53,200,74,8,172,98,80,219,134,160,105,165,231],null,[0,229,121,135,48,211,117,251,126,159,180,169,152,192,226,228,218,111,0,117,232,87,96,227,21],null,[0,173,125,158,2,103,182,118,17,145,201,111,28,165,53,161,21,245,142,13,102,48,227,153,145,218,70],null,[0,168,223,200,104,224,234,108,180,110,190,195,147,205,27,232,201,21,43,245,87,42,195,212,119,242,37,9,123],null,[0,41,173,145,152,216,31,179,182,50,48,110,86,239,96,222,125,42,173,226,193,224,130,156,37,251,216,238,40,192,180],null,[0,10,6,106,190,249,167,4,67,209,138,138,32,242,123,89,27,120,185,80,156,38,69,171,60,28,222,80,52,254,185,220,241],null,[0,111,77,146,94,26,21,108,19,105,94,113,193,86,140,163,125,58,158,229,239,218,103,56,70,114,61,183,129,167,13,98,62,129,51],null,[0,200,183,98,16,172,31,246,234,60,152,115,0,167,152,113,248,238,107,18,63,218,37,87,210,105,177,120,74,121,196,117,251,113,233,30,120],null,null,null,[0,59,116,79,161,252,98,128,205,128,161,247,57,163,56,235,106,53,26,187,174,226,104,170,7,175,35,181,114,88,41,47,163,125,134,72,20,232,53,35,15],null,[0,250,103,221,230,25,18,137,231,0,3,58,242,221,191,110,84,230,8,188,106,96,147,15,131,139,34,101,223,39,101,213,199,237,254,201,123,171,162,194,117,50,96],null,[0,190,7,61,121,71,246,69,55,168,188,89,243,191,25,72,123,9,145,14,247,1,238,44,78,143,62,224,126,118,114,68,163,52,194,217,147,204,169,37,130,113,102,73,181],null,[0,112,94,88,112,253,224,202,115,187,99,89,5,54,113,129,44,58,16,135,216,169,211,36,1,4,96,60,241,73,104,234,8,249,245,119,174,52,25,157,224,43,202,223,19,82,15],null,[0,228,25,196,130,211,146,60,24,251,90,39,102,240,61,178,63,46,123,115,18,221,111,135,160,182,205,107,206,95,150,120,184,91,21,247,156,140,238,191,11,94,227,84,50,163,39,34,108],null,[0,232,125,157,161,164,9,118,46,209,99,203,193,35,3,209,111,195,242,203,225,46,13,32,160,126,209,130,160,242,215,242,75,77,42,189,32,113,65,124,69,228,114,235,175,124,170,215,232,133,205],null,[0,116,50,86,186,50,220,251,89,192,46,86,127,124,19,184,233,151,215,22,14,59,145,37,242,203,134,254,89,190,94,59,65,124,113,100,233,235,121,22,76,86,97,39,242,200,220,101,33,239,254,116,51],null,[0,183,26,201,87,210,221,113,21,46,65,45,50,238,184,249,225,102,58,209,218,109,165,26,95,184,192,52,245,35,254,238,175,172,79,123,25,122,43,120,108,215,80,128,201,235,8,153,59,101,31,198,76,31,156],null,[0,106,120,107,157,164,216,112,116,2,91,248,163,36,201,202,229,6,144,254,155,135,208,170,209,12,139,127,142,182,249,177,174,190,28,10,85,239,184,101,124,152,206,96,23,163,61,27,196,247,151,154,202,207,20,61,10],null,[0,82,116,26,247,66,27,62,107,252,182,200,185,235,55,251,242,210,144,154,237,176,141,192,248,152,249,206,85,253,142,65,165,125,23,24,30,122,240,214,6,129,218,29,145,127,134,206,245,117,29,41,63,159,142,233,125,148,123],null,[0,107,140,26,12,9,141,243,197,226,197,219,45,211,101,219,120,28,181,127,6,100,247,2,205,198,57,115,219,101,109,160,82,37,38,238,49,160,209,121,86,11,124,30,181,84,25,194,87,65,102,190,220,70,27,209,16,89,7,33,240],null,[0,65,202,113,98,71,223,248,118,214,94,1,122,37,23,2,228,58,121,7,105,135,78,243,118,70,76,223,89,72,50,70,111,194,17,212,126,181,35,221,117,235,11,229,149,147,123,213,40,115,6,200,100,26,246,182,218,127,215,36,186,110,106],null,[0,45,51,175,9,7,158,159,49,68,119,92,123,177,204,187,254,200,78,141,149,119,26,127,53,160,93,199,212,29,24,145,156,208,150,218,209,4,216,91,47,184,146,47,140,195,195,125,242,238,63,99,108,140,230,242,31,204,11,178,243,217,156,213,231],null,[0,5,118,222,180,136,136,162,51,46,117,13,215,81,17,139,247,197,171,95,173,65,137,178,68,111,95,101,41,72,214,169,197,95,7,44,154,77,111,236,40,121,143,63,87,80,253,240,126,217,77,34,232,106,50,168,82,76,146,67,106,171,25,132,93,45,105],null,[0,247,159,223,33,224,93,77,70,90,160,32,254,43,150,84,101,190,205,133,52,60,202,165,220,203,151,93,84,15,84,253,173,160,89,227,52,199,97,95,231,52,177,41,125,137,241,166,225,118,2,54,32,82,215,175,198,43,238,235,27,101,184,127,3,5,8,163,238],null]},function(t,e,n){"use strict";var r,f,i,l,i,a,i,i,o,c,o,s,o,h,o,v,o,d,n,u;function w(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function b(t){return t&&t.__esModule?t:{default:t}}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function g(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function m(){return y(this,m),p(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&w(t.prototype,e),n&&w(t,n),t},f=n(0),i=n(3),l=b(i),i=n(13),a=b(i),i=n(14),i=b(i),o=n(15),c=b(o),o=n(16),s=b(o),o=n(17),h=b(o),o=n(18),v=b(o),o=n(19),d=b(o),g(m,u=i.default),r(m,[{key:"encodeData",value:function t(e,n){var r,i,o,u,r=this,i=this.charCountIndicatorBitsNumber,o=this.charCode,u=new d.default;return n&&(u.put(l.default.MODE_INDICATOR.StructuredAppend,4),u.put(n.connectionNo,4),u.put(n.connectionCnt-1,4),u.put(l.default.getParityData(o,this.config.charset),8)),e.forEach(function(t){if(t.code){var e=void 0;switch(t.mode){case"Numeric":e=new s.default(t.code);break;case"Alphanumeric":e=new h.default(t.code);break;case"8BitByte":e=new c.default(t.code,r.config.charset);break;case"Kanji":e=new v.default(t.code)}u.put(e.getMode(),4),u.put(e.getLength(),i[e.mode]),e.write(u)}}),u}},{key:"getFinalMessage",value:function t(e){for(var n,r,i,o,u,a,c,s,n=[],r=e.map(function(t){return t.data}),i=e.map(function(t){return t.ec}),o=(0,f.getMaxValue)(r),u=(0,f.getMaxValue)(i),a=function t(e){r.forEach(function(t){(0,f.isDefined)(t[e])&&n.push(t[e])})},c=0;c<o;c++)a(c);for(s=function t(e){i.forEach(function(t){(0,f.isDefined)(t[e])&&n.push(t[e])})},c=0;c<u;c++)s(c);return n}},{key:"setModules",value:function t(e){var n=this.modulesCount,r=this.version;this.modules=l.default.createModules(n),this.addPositionDetectionPattern(),this.addAlignmentPattern(),this.addTimingPattern(),6<r&&this.addVersionInformation(),this.maskModules(e)}},{key:"maskModules",value:function t(e){var n,r,i,o,u,n,n=this.modules,r=this.errorCorrectionLevel,i=this.model,o=this.config.mask;"auto"===o&&(o=this.autoMask(e)),u=l.default.getMaskFunc(o),this.maskPattern=o,n=l.default.addFormatInformation(n,o,r,i),this.modules=this.fillDataModules(n,e,u)}},{key:"autoMask",value:function t(r){var i,o,u,a,c,s,i=this,o=this.modules,u=this.errorCorrectionLevel,a=this.model,c=void 0,s=void 0;return l.default.maskFuncs.forEach(function(t,e){var n,n,t,n=l.default.addFormatInformation(o,e,u,a,!0),n=i.fillDataModules(n,r,t),t=l.default.getMaskScore(n);(!c||t<c)&&(c=t,s=e)}),s}},{key:"addAlignmentPattern",value:function t(){var n,r,e,i,n=this,r=this.modules,e=this.version,i=l.default.getAlignmentPattersPos(e);i.forEach(function(e){i.forEach(function(t){null===r[e][t]&&n.addPattern(t-2,e-2,5)})})}},{key:"addVersionInformation",value:function t(){for(var e,n,r,i,o,u,e=this.modulesCount,n=this.modules,r=this.version,i=a.default.getBCH18(r),o=0;o<18;o++)u=i>>o&1,n[Math.floor(o/3)][o%3+e-8-3]=u,n[o%3+e-8-3][Math.floor(o/3)]=u}},{key:"fillDataModules",value:function t(e,n,r){for(var i,o,u,a,c,s,f,l,i=e.length,o=-1,u=i-1,a=7,c=0,s=i-1;0<s;s-=2)for(6==s&&--s;;){for(f=0;f<2;f+=1)null==e[u][s-f]&&(l=!1,c<n.length&&(l=1==(n[c]>>>a&1)),r(u,s-f)&&(l=!l),e[u][s-f]=+l,-1==--a)&&(c+=1,a=7);if((u+=o)<0||i<=u){u-=o,o=-o;break}}return e}},{key:"getMatrix",value:function t(){var e,e,e,e,e,e,e=this.charCode,e=this.analysisData(e),e=this.encodeData(e),e=this.processConnection(e);return this.padBuffer(e),e=this.generateErrorCorrectionCode(e),e=this.getFinalMessage(e),this.setModules(e),this.modules}}]),n=m,e.default=n},function(t,e,n){"use strict";var r,i;function o(t){return t&&t.__esModule?t:{default:t}}function u(t){var e,t,e=document.createElement("div");return e.style.visibility="hidden",e.style.absolute="hidden",e.style.padding="0",e.style.border="0",e.style.width=t,document.body.appendChild(e),t=e.getBoundingClientRect(),document.body.removeChild(e),t.width}(i=o(r=n(2))).default.registerPlugin("convertUnit",u)},function(t,e,n){"use strict";var r,i;function o(t){return t&&t.__esModule?t:{default:t}}function u(t,e){var n,t,n=document.createElement("span");return n.style.visibility="hidden",n.style.absolute="hidden",n.style.lineHeight="1",n.textContent=t,Object.keys(e).forEach(function(t){n.style[t]=e[t]}),document.body.appendChild(n),t=n.getBoundingClientRect(),document.body.removeChild(n),t.height}(i=o(r=n(2))).default.registerPlugin("measureText",u)}],i={},r.m=n,r.c=i,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},r.n=function(e){var t=e&&e.__esModule?function t(){return e.default}:function t(){return e};return r.d(t,"a",t),t},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=20).default;function r(t){var e;return(i[t]||(e=i[t]={i:t,l:!1,exports:{}},n[t].call(e.exports,e,e.exports,r),e.l=!0,e)).exports}var n,i})},Common:function(t){"use strict";t.exports=e.Spread},CalcEngine:function(t){"use strict";t.exports=e.Spread.CalcEngine},Core:function(t){"use strict";t.exports=e.Spread.Sheets},Sparkline:function(t){"use strict";t.exports=e.Spread.Sheets.Sparklines}},i={},o={},function(){"use strict";var t,e,t=o;Object.defineProperty(t,"__esModule",{value:!0}),t.QRCode=t.PDF417=t.GS1_128=t.EAN8=t.EAN13=t.DataMatrix=t.Code93=t.Code49=t.Code39=t.Code128=t.Codabar=t.BarcodeBase=void 0,e=n("./dist/plugins/barcode/barcodeSparkline.js"),Object.defineProperty(t,"BarcodeBase",{enumerable:!0,get:function(){return e.BarcodeBase}}),Object.defineProperty(t,"Codabar",{enumerable:!0,get:function(){return e.Codabar}}),Object.defineProperty(t,"Code128",{enumerable:!0,get:function(){return e.Code128}}),Object.defineProperty(t,"Code39",{enumerable:!0,get:function(){return e.Code39}}),Object.defineProperty(t,"Code49",{enumerable:!0,get:function(){return e.Code49}}),Object.defineProperty(t,"Code93",{enumerable:!0,get:function(){return e.Code93}}),Object.defineProperty(t,"DataMatrix",{enumerable:!0,get:function(){return e.DataMatrix}}),Object.defineProperty(t,"EAN13",{enumerable:!0,get:function(){return e.EAN13}}),Object.defineProperty(t,"EAN8",{enumerable:!0,get:function(){return e.EAN8}}),Object.defineProperty(t,"GS1_128",{enumerable:!0,get:function(){return e.GS1_128}}),Object.defineProperty(t,"PDF417",{enumerable:!0,get:function(){return e.PDF417}}),Object.defineProperty(t,"QRCode",{enumerable:!0,get:function(){return e.QRCode}})}(),(((e=void 0===e?{}:e).Spread=e.Spread||{}).Sheets=e.Spread.Sheets||{}).Barcode=o});
12
+ !function(t){"object"==typeof module&&"object"==typeof module.exports?module.exports=t(require("@mescius/spread-sheets")):"function"==typeof define&&define.amd?define(["@mescius/spread-sheets"],t):"object"==typeof exports?exports.Spread=t(require("@mescius/spread-sheets")):t(GC)}(function(e){function n(t){var e,e,e=i[t];return void 0!==e||(e=i[t]={exports:{}},r[t].call(e.exports,e,e.exports,n)),e.exports}var r,i,o;r={"./dist/plugins/barcode/barcodeSparkline.js":function(F,t,e){"use strict";var n,r,i,o,u,y,e,a,c,s,p,r,f,l,h,e,o,r,i,v,d,w,b,g,m,R,n,C,k,q,L,Z,P,U,$,G,z,V,W,X;function H(r,t){var e,i,o,u,e,i={},o={},u={};return t.forEach(function(t,e){var n=r[e];if(!s(n))if(-1!==t.indexOf("quietZone"))switch(t){case"quietZoneLeft":o.left=n;break;case"quietZoneRight":o.right=n;break;case"quietZoneTop":o.top=n;break;case"quietZoneBottom":o.bottom=n}else if(-1!==t.indexOf("font"))switch(t){case"fontFontFamily":u.fontFamily=n;break;case"fontFontStyle":u.fontStyle=n;break;case"fontFontWeight":u.fontWeight=n;break;case"fontTextDecoration":u.textDecoration=n;break;case"fontTextAlign":u.textAlign=n;break;case"fontFontSize":u.fontSize=n}else i[t]=n}),a(o)||(i.quietZone=o),a(u)||(i.font=u),i}function Q(t,e,n,r,i){return{plotX:t+i,plotY:e+i,plotWidth:n-2*i,plotHeight:r-2*i}}function K(t,e,n,r,i,o,u){var a,c,e,s,f,l,c,h,v,d,w,b,b,w,h,l,a=2,c=Q(n,r,i,o,2),e=p(e),s=c.plotX,f=c.plotY,l=c.plotWidth,c=c.plotHeight;e.desiredSize={width:l,height:c,forceRounding:!1};try{h=new y(null,e)}catch(t){return}v=h.getSize(),d=parseInt(h.option.font.fontSize,10),d=isNaN(d)?12:d,b=(w=window.screen).deviceXDPI,b=window.devicePixelRatio||(b?b/w.logicalXDPI:1),h.destroy(),e.desiredSize.width=l*b,e.desiredSize.height=c*b,e.font=e.font||{},e.font.fontSize=d*b*u.zoomFactor+"px",w=y.getDataUrl(e),(h=u.sheet.MC)&&(h.getState(w)?(l=h.getImage(w),t.save(),t.rect(n,r,i,o),t.clip(),t.drawImage(l,0,0,l.width,l.height,s,f,v.width,v.height),t.restore()):h.addImage(w))}function A(){return k.call(this)||this}function O(){return q.call(this)||this}function E(){return L.call(this)||this}function j(){return Z.call(this)||this}function S(){return P.call(this)||this}function T(){return U.call(this)||this}function x(){return $.call(this)||this}function M(){return G.call(this)||this}function B(){return z.call(this)||this}function _(){return V.call(this)||this}function N(){return W.call(this)||this}function D(){return X.call(this)||this}function I(t){t&&(u.jMt[t.name()]=t)}n=this&&this.__extends||(C=function(t,e){return(C=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}C(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Object.defineProperty(t,"__esModule",{value:!0}),t.DataMatrix=t.PDF417=t.Code49=t.GS1_128=t.Code128=t.Code93=t.Code39=t.Codabar=t.EAN8=t.EAN13=t.QRCode=t.BarcodeBase=void 0,r=e("Core"),i=e("CalcEngine"),o=e("Common"),u=e("Sparkline"),y=e("./dist/plugins/barcode/lib/barcode.all.js"),e=r.GC$,a=e.isEmptyObject,c=i.Functions.Function,s=o.Common.lt.ht,p=o.Common.lt.tv,r=i.Convert,f=r.Nh,l=i.Errors.Value,h=["text","color","backgroundColor"],k=u.SparklineEx,n(A,k),A.prototype.getBarcodeInfo=function(){return null},A.prototype.createFunction=function(){var n,r,t,i,n=this,r=this.getBarcodeInfo();if(r)return t=new c(r.fnName,r.minimum,r.maxmum),i=r.acceptsArrayArgIndex,t.acceptsArray=function(t){return t===i},t.evaluate=function(t){var t,e;t[i]=f(t[i])?t[i].array[0]:t[i],(t=n.t(t,r.properties)).type=r.type,t.isBarcode=!0;try{e=p(t),new y(null,e)}catch(t){return l}return t},t},A.prototype.paint=function(t,e,n,r,i,o,u){K(t,e,n,r,i,o,u)},A.prototype.t=H,t.BarcodeBase=e=A,n(O,q=e),O.prototype.getBarcodeInfo=function(){return{fnName:"BC_QRCODE",minimum:1,maxmum:16,type:"QRCode",acceptsArrayArgIndex:9,properties:h.concat(["errorCorrectionLevel","model","version","mask","connection","connectionNo","charCode","charset","quietZoneLeft","quietZoneRight","quietZoneTop","quietZoneBottom","quietZoneAddOn"])}},t.QRCode=o=O,n(E,L=e),E.prototype.getBarcodeInfo=function(){return{fnName:"BC_EAN13",minimum:1,maxmum:18,type:"EAN13",properties:h.concat(["showLabel","labelPosition","addOn","addOnLabelPosition","fontFontFamily","fontFontStyle","fontFontWeight","fontTextDecoration","fontTextAlign","fontFontSize","quietZoneLeft","quietZoneRight","quietZoneTop","quietZoneBottom"])}},t.EAN13=r=E,n(j,Z=e),j.prototype.getBarcodeInfo=function(){return{fnName:"BC_EAN8",minimum:1,maxmum:15,type:"EAN8",properties:h.concat(["showLabel","labelPosition","fontFontFamily","fontFontStyle","fontFontWeight","fontTextDecoration","fontTextAlign","fontFontSize","quietZoneLeft","quietZoneRight","quietZoneTop","quietZoneBottom"])}},t.EAN8=i=j,n(S,P=e),S.prototype.getBarcodeInfo=function(){return{fnName:"BC_CODABAR",minimum:1,maxmum:17,type:"Codabar",properties:h.concat(["showLabel","labelPosition","checkDigit","nwRatio","fontFontFamily","fontFontStyle","fontFontWeight","fontTextDecoration","fontTextAlign","fontFontSize","quietZoneLeft","quietZoneRight","quietZoneTop","quietZoneBottom"])}},t.Codabar=v=S,n(T,U=e),T.prototype.getBarcodeInfo=function(){return{fnName:"BC_CODE39",minimum:1,maxmum:19,type:"Code39",properties:h.concat(["showLabel","labelPosition","labelWithStartAndStopCharacter","checkDigit","nwRatio","fullASCII","fontFontFamily","fontFontStyle","fontFontWeight","fontTextDecoration","fontTextAlign","fontFontSize","quietZoneLeft","quietZoneRight","quietZoneTop","quietZoneBottom"])}},t.Code39=d=T,n(x,$=e),x.prototype.getBarcodeInfo=function(){return{fnName:"BC_CODE93",minimum:1,maxmum:17,type:"Code93",properties:h.concat(["showLabel","labelPosition","checkDigit","fullASCII","fontFontFamily","fontFontStyle","fontFontWeight","fontTextDecoration","fontTextAlign","fontFontSize","quietZoneLeft","quietZoneRight","quietZoneTop","quietZoneBottom"])}},t.Code93=w=x,n(M,G=e),M.prototype.getBarcodeInfo=function(){return{fnName:"BC_CODE128",minimum:1,maxmum:16,type:"Code128",properties:h.concat(["showLabel","labelPosition","codeSet","fontFontFamily","fontFontStyle","fontFontWeight","fontTextDecoration","fontTextAlign","fontFontSize","quietZoneLeft","quietZoneRight","quietZoneTop","quietZoneBottom"])}},t.Code128=b=M,n(B,z=e),B.prototype.getBarcodeInfo=function(){return{fnName:"BC_GS1_128",minimum:1,maxmum:16,type:"GS1_128",properties:h.concat(["showLabel","labelPosition","fontFontFamily","fontFontStyle","fontFontWeight","fontTextDecoration","fontTextAlign","fontFontSize","quietZoneLeft","quietZoneRight","quietZoneTop","quietZoneBottom"])}},t.GS1_128=g=B,n(_,V=e),_.prototype.getBarcodeInfo=function(){return{fnName:"BC_CODE49",minimum:1,maxmum:17,type:"Code49",properties:h.concat(["showLabel","labelPosition","grouping","groupNo","fontFontFamily","fontFontStyle","fontFontWeight","fontTextDecoration","fontTextAlign","fontFontSize","quietZoneLeft","quietZoneRight","quietZoneTop","quietZoneBottom"])}},t.Code49=m=_,n(N,W=e),N.prototype.getBarcodeInfo=function(){return{fnName:"BC_PDF417",minimum:1,maxmum:11,type:"PDF417",properties:h.concat(["errorCorrectionLevel","rows","columns","compact","quietZoneLeft","quietZoneRight","quietZoneTop","quietZoneBottom"])}},t.PDF417=R=N,n(D,X=e),D.prototype.getBarcodeInfo=function(){return{fnName:"BC_DATAMATRIX",minimum:1,maxmum:14,type:"DataMatrix",properties:h.concat(["eccMode","ecc200SymbolSize","ecc200EncodingMode","ecc00_140SymbolSize","structuredAppend","structureNumber","fileIdentifier","quietZoneLeft","quietZoneRight","quietZoneTop","quietZoneBottom"])}},t.DataMatrix=n=D,c&&(I(new o),I(new r),I(new i),I(new v),I(new d),I(new w),I(new b),I(new g),I(new m),I(new R),I(new n))},"./dist/plugins/barcode/lib/barcode.all.js":function(r){!function t(e,n){r.exports=n()}("undefined"!=typeof self?self:this,function(){return n=[function(t,n,I){"use strict";var i,r;function c(t){return"function"==typeof t}function e(t){return!!t&&t===t.window}function o(t){return void 0!==t}function u(t){return c(Number.isNaN)?Number.isNaN(t):t!=t}function a(t){return!u(+t)}function s(){for(var t,e,n,r,i,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1,n=arguments[2],r=0,i=t.length;r<i;)n(t.substring(r,r+e)),r+=e}function f(){for(var t,e,n,r,i,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1,n=arguments[2],r=0,i=t.length;r<i;)n(t.slice(r,r+e)),r+=e}function l(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"";return c(Array.from)?Array.from(t):Array.prototype.slice.call(t)}function h(){var t,e,n,t,e=l(0<arguments.length&&void 0!==arguments[0]?arguments[0]:""),n=[];return e.forEach(function(t){var t;"0"===t?n.push(0):n[n.length-1]&&0!==n[n.length]?(t=n.pop(),n.push(++t)):n.push(1)}),n}function v(t){var e;return(t=+t).toString(1<arguments.length&&void 0!==arguments[1]?arguments[1]:2)}function d(t){return t%2==0}function w(t){return t%2==1}function b(){var t,e,t,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;return"number"!=typeof t&&u(t=parseFloat(t))?e:t}function y(){var t,e,t,e=/[a-zA-Z]+/.exec(0<arguments.length&&void 0!==arguments[0]?arguments[0]:"");return e?e[0]:"px"}function p(t){var e,n,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"length",n=0;return t.forEach(function(t){t[e]>n&&(n=t[e])}),n}function g(t){for(var e,n,r,i,o,u,a,e=arguments.length,n=Array(1<e?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(c(Object.assign))return Object.assign.apply(Object,[t].concat(n));if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(i=Object(t),o=0;o<n.length;o++)if(null!=(u=n[o]))for(a in u)Object.prototype.hasOwnProperty.call(u,a)&&(i[a]=u[a]);return i}function m(n){if(null==n)throw new TypeError("Cannot convert undefined or null to object");for(var t=arguments.length,e=Array(1<t?t-1:0),r=1;r<t;r++)e[r-1]=arguments[r];return e.forEach(function(t){if(t)for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&("object"===i(t[e])&&"object"===i(n[e])?n[e]=m({},n[e]||{},t[e]):n[e]=t[e])}),n}function C(t,e){var n,r,i;if(c(t.repeat))return t.repeat(e);if(n=""+t,(e=(e=+e)!=e?0:e)<0)throw new RangeError("repeat count must be non-negative");if(e==1/0)throw new RangeError("repeat count must be less than infinity");if(e=Math.floor(e),0==n.length||0==e)return"";if(1<<28<=n.length*e)throw new RangeError("repeat count must not overflow maximum string size");for(r="",i=0;i<e;i++)r+=n;return r}function k(t){return c(Number.isInteger)?Number.isInteger(t):"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}function A(t,e){if(c(t.fill))return t.fill(e);for(var n=0;n<t.length;n++)t[n]=e;return t}function O(t,e,n){return c(t.padStart)?t.padStart(e,n):(e>>=0,n=String(void 0!==n?n:" "),t.length>e?t:((e-=t.length)>n.length&&(n+=C(n,e/n.length)),n.slice(0,e)+String(t)))}function E(t,e){r[t]=e}function j(t,e){var n;return 1.4*b(e.fontSize,12)}function S(t,e){return r.measureText(t,e)}function T(t,e){return(c(r.measureText)?(n.measureText=T=S,T):j)(t,e)}function x(t){var e;return b(t,12)}function M(t){return a(t)?b(t,12):r.convertUnit(t)}function B(t){return(c(r.convertUnit)?(n.convertUnit=B=M,B):x)(t)}function _(t){return a(t)?t+"px":t}function N(t){return t.originIsAbsoluteValue?0:t.relativeValue}function D(t){return t.originIsAbsoluteValue?t.pixelValue:0}Object.defineProperty(n,"__esModule",{value:!0}),i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n.isFunction=c,n.isWindow=e,n.isDefined=o,n.isNaN=u,n.isNumberLike=a,n.sliceString=s,n.sliceArray=f,n.str2Array=l,n.combineTruthy=h,n.convertRadix=v,n.isEven=d,n.isOdd=w,n.toNumber=b,n.getUnit=y,n.getMaxValue=p,n.assign=g,n.deepMerge=m,n.strRepeat=C,n.isInteger=k,n.fillArray=A,n.strPadStart=O,n.registerPlugin=E,n.measureText=T,n.convertUnit=B,n.fixSize2PixelDefault=_,n.getQuietZoneRelativeValue=N,n.getQuietZonePixelValue=D,r={}},function(F,t,R){"use strict";var e,n,r,i,o,u,a,c,s,f,l,h,q,v,d,w,b,y,p,g,L,Z,P,U,$,G;function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function C(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function k(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function A(t){var e,n,t,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"";return m(this,A),(n=C(this,(A.__proto__||Object.getPrototypeOf(A)).call(this))).name="BadArgumentsException",t=JSON.stringify(t),n.message=t+" is not a valid argument. "+e,n}function O(t){m(this,O);var e=C(this,(O.__proto__||Object.getPrototypeOf(O)).call(this));return e.name="TypeNotSupportException",e.message=t+" is not support!",e}function E(t){m(this,E);var e=C(this,(E.__proto__||Object.getPrototypeOf(E)).call(this));return e.name="NotAValidBarcodeEncoderException",e.message=t+" is not support!",e}function j(){m(this,j);var t=C(this,(j.__proto__||Object.getPrototypeOf(j)).call(this));return t.name="SubclassNotImplementException",t.message="must implement by subclass!",t}function S(t){m(this,S);var e=C(this,(S.__proto__||Object.getPrototypeOf(S)).call(this));return e.name="UnrecognizedRenderException",e.message=t+" is not support!",e}function T(t){m(this,T);var e=C(this,(T.__proto__||Object.getPrototypeOf(T)).call(this));return e.name="MethodNotImplementException",e.message=t+" doesn't have this method!",e}function x(){var t,e,n,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"Empty text",e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"";return m(this,x),(n=C(this,(x.__proto__||Object.getPrototypeOf(x)).call(this))).name="InvalidTextException",n.message=t+" is invalid. "+e,n}function M(t){m(this,M);var e=C(this,(M.__proto__||Object.getPrototypeOf(M)).call(this));return e.name="InvalidCharException",e.message=t+" is invalid.",e}function B(){m(this,B);var t=C(this,(B.__proto__||Object.getPrototypeOf(B)).call(this));return t.name="TextTooLargeException",t.message="Text is too larget to encode",t}function _(t){m(this,_);var e=C(this,(_.__proto__||Object.getPrototypeOf(_)).call(this));return e.name="ConnectionOverflowException",e.message="Max Connection Number is "+(t-1),e}function N(t){m(this,N);var e=C(this,(N.__proto__||Object.getPrototypeOf(N)).call(this));return e.name="GroupOverflowException",e.message="Max Group Number is "+(t-1),e}function D(t){m(this,D);var e=C(this,(D.__proto__||Object.getPrototypeOf(D)).call(this));return e.name="GroupSizeException",e.message="Group size is "+t+". The max group size is 9.",e}function I(){m(this,I);var t=C(this,(I.__proto__||Object.getPrototypeOf(I)).call(this));return t.name="InvalidStructureNumberException",t.message="InvalidStructureNumberException.",t}Object.defineProperty(t,"__esModule",{value:!0}),e=t.BadArgumentsException=(k(A,v=Error),A),n=t.TypeNotSupportException=(k(O,d=Error),O),r=t.NotAValidBarcodeEncoderException=(k(E,w=Error),E),i=t.SubclassNotImplementException=(k(j,b=Error),j),o=t.UnrecognizedRenderException=(k(S,y=Error),S),u=t.MethodNotImplementException=(k(T,p=Error),T),a=t.InvalidTextException=(k(x,g=Error),x),c=t.InvalidCharException=(k(M,L=Error),M),s=t.TextTooLargeException=(k(B,Z=Error),B),f=t.ConnectionOverflowException=(k(_,P=Error),_),l=t.GroupOverflowException=(k(N,U=Error),N),h=t.GroupSizeException=(k(D,$=Error),D),t.InvalidStructureNumberException=(k(I,G=Error),I)},function(t,d,w){"use strict";!function(t){var e,u,a,n,r,i,n,o,c,s,e;function f(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function l(t){return t&&t.__esModule?t:{default:t}}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(){var t,e,n,r,i,o;for(h(this,v),n=e=t=void 0,r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];if(3<=i.length)t=i[0],e=i[1],n=i[2];else if(2===i.length)(0,u.isFunction)(i[1])?(e=i[0],n=i[1]):(t=i[0],e=i[1]);else{if(1!==i.length)throw new a.BadArgumentsException(i);e=i[0]}this.dom="string"==typeof t?document.querySelector(t):t,this.callback=n&&n.bind(this),this.setOption(e)}Object.defineProperty(d,"__esModule",{value:!0}),e=function(t,e,n){return e&&f(t.prototype,e),n&&f(t,n),t},u=w(0),a=w(1),n=w(23),r=l(n),n=l(i=w(6)),o={renderType:"canvas",unitSize:"1px",color:"rgb(0,0,0)",backgroundColor:"rgb(255,255,255)",font:{fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",textDecoration:"none",textAlign:"center",fontSize:"12px"}},c={},s={},e(v,null,[{key:"getImageData",value:function t(){var e,n,e,n;return new v(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).getImageData()}},{key:"getDataUrl",value:function t(){var e,n,e,n;return new v(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).getDataUrl()}},{key:"setDefaultOptions",value:function t(){var e;c=(0,u.deepMerge)({},0<arguments.length&&void 0!==arguments[0]?arguments[0]:{})}},{key:"registerEncoder",value:function t(e,n){s[e]=n,v.supportType.push(e)}},{key:"registerPlugin",value:function t(e,n){(0,u.registerPlugin)(e,n)}}]),e(v,[{key:"mergeOption",value:function t(e){return this.option=(0,u.deepMerge)({},this.option,e),this.update(),this}},{key:"setOption",value:function t(e){return this.option=(0,u.deepMerge)({},o,c,e),this.update(),this}},{key:"update",value:function t(){var e,n,e=this.option,n=s[e.type];if(!n)throw new a.TypeNotSupportException(e.type);this.encoder=new n(e),this.render&&(this.render.destroy(),this.render=null),this.render=new r.default(this.dom,this.encoder),this.render.render(),(0,u.isFunction)(this.callback)&&this.callback()}},{key:"getImageData",value:function t(){return this.render.getImageData()}},{key:"getDataUrl",value:function t(){return this.render.getDataUrl()}},{key:"getSize",value:function t(){return this.render.size}},{key:"destroy",value:function t(){this.render&&this.render.destroy()}}]),(d.default=e=v).supportType=[],e.constants=n.default,(0,u.isWindow)(t)&&(t.Barcode=e)}.call(d,w(22))},function(F,t,e){"use strict";var l,h,e,v,n,r,i,o,u,a,c,s,f,d,w,b,y;function p(t){return t&&t.__esModule?t:{default:t}}function g(t){return 48<=t&&t<=57}function m(t){var e;return-1<" $%*+-./:".indexOf(String.fromCharCode(t))||48<=t&&t<=57||65<=t&&t<=90}function C(t){return 0<=t&&t<=255}function k(t){return 33087<=t&&t<=64587}function A(t,e){var n=o[t];return 1===e.length?n(e):e.every(function(t){return n(t)})}function O(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"UTF-8";return g(t)?"Numeric":m(t)?"Alphanumeric":"Shift_JIS"===e&&k(t)?"Kanji":"8BitByte"}function E(t){return 1<=t&&t<=9?{Numeric:10,Alphanumeric:9,"8BitByte":8,Kanji:8}:10<=t&&t<=26?{Numeric:12,Alphanumeric:11,"8BitByte":16,Kanji:10}:{Numeric:14,Alphanumeric:13,"8BitByte":16,Kanji:12}}function j(t){if(48<=t&&t<=57)return+String.fromCharCode(t);if(65<=t&&t<=90)return t-65+10;var e=a[String.fromCharCode(t)];if(e)return e;throw new l.InvalidTextException(String.fromCharCode(t))}function S(t){for(var e,n,e=[],n=0;n<t;n++)e.push((0,h.fillArray)(new Array(t),null));return e}function T(t){return c[t-1]}function x(t,e){var n,r,i,o,u,a,c,s,f,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:2,r=void 0;switch(e){case 1:r=0;break;case 0:r=1;break;case 3:r=2;break;case 2:r=3}for(u=[],a=(o=(i=2===n?w:b)[4*(t-1)+r]).length/3,c=0;c<a;c++)for(s=o[3*c],f=0;f<s;f++)u.push({total:o[3*c+1],data:o[3*c+2],ec:o[3*c+1]-o[3*c+2]});return u}function M(t){return d[t]}function B(t){return t.reduce(function(t,e){return t.push(e.slice(0)),t},[])}function _(t){for(var e,n,r,i,o,u,a,c,s,f,l,h,v,d,w,b,y,p,g,e=t.length,n=0,r=0;r<e;r++)for(i=0;i<e;i++){for(o=0,u=t[r][i],a=-1;a<=1;a++)if(!(r+a<0||e<=r+a))for(c=-1;c<=1;c++)i+c<0||e<=i+c||0==a&&0==c||u==t[r+a][i+c]&&(o+=1);5<o&&(n+=3+o-5)}for(s=0;s<e-1;s++)for(f=0;f<e-1;f++)l=0,t[s][f]&&(l+=1),t[s+1][f]&&(l+=1),t[s][f+1]&&(l+=1),t[s+1][f+1]&&(l+=1),0!=l&&4!=l||(n+=3);for(h=0;h<e;h++)for(v=0;v<e-6;v++)t[h][v]&&!t[h][v+1]&&t[h][v+2]&&t[h][v+3]&&t[h][v+4]&&!t[h][v+5]&&t[h][v+6]&&(n+=40);for(d=0;d<e;d++)for(w=0;w<e-6;w++)t[w][d]&&!t[w+1][d]&&t[w+2][d]&&t[w+3][d]&&t[w+4][d]&&!t[w+5][d]&&t[w+6][d]&&(n+=40);for(y=b=0;y<e;y++)for(p=0;p<e;p++)t[p][y]&&(b+=1);return n+=10*(g=Math.abs(100*b/e/e-50)/5)}function N(t,e,n,r){var i,o,u,t,n,a,c,s,f,i=4<arguments.length&&void 0!==arguments[4]&&arguments[4],o=t.length,u=B(t),t=(0,h.strPadStart)((0,h.convertRadix)(n,2),2,0),n=(0,h.strPadStart)((0,h.convertRadix)(e,2),3,0),a,c=v.default.getBCH15(parseInt(t+n,2),r);for(u[o-8][8]=i?0:1,s=15;0<s;s--)f=i?0:c>>s-1&1,9<s?(u[8][15-s]=f,u[o-1-15+s][8]=f):8<s?(u[8][15-s+1]=f,u[o-1-15+s][8]=f):(6<s?u[s][8]=f:u[s-1][8]=f,u[8][o-s]=f);return u}function R(t,e,n){var r,i,o,u,a,c,s,f,r=0,i=0,o=0,u=0;for(e.forEach(function(t){g(t)?r++:m(t)?i++:k(t)?u++:C(t)&&o++}),a=Math.ceil((5*i+3*r+13*u+8*o)/8),c=1;c<=40;c++)if(a<=(f=(s=x(c,t,n)).reduce(function(t,e){return t+e.data},0)))return c;throw new l.TextTooLargeException}function q(t,e){var t=y[t];return e<=9?t[0]:e<=26?t[1]:t[2]}function D(t){for(var e,n,r,e=[],n=0;n<t.length;n+=1)(r=t[n])<128||(255&r)==r?e.push(r):(e.push(r>>>8),e.push(255&r));return e}function I(t){for(var e,n,r,i,e=[],n=0,r=t.length;n<r;n++)(i=t[n])<128?e.push(i):i<2048?e.push(192|i>>6,128|63&i):i<55296||57344<=i?e.push(224|i>>12,128|i>>6&63,128|63&i):(i=65536+((1023&i)<<10|1023&t[++n]),e.push(240|i>>18,128|i>>12&63,128|i>>6&63,128|63&i));return e}function L(t,e){for(var n,r,i,o,n=void 0,r=(n=("Shift_JIS"===e?D:I)(t))[0],i=1,o=n.length;i<o;i++)r^=n[i];return r}function Z(t){var e=[];return(0,h.sliceString)(t,1,function(t){e.push(t.charCodeAt(0))}),e}Object.defineProperty(t,"__esModule",{value:!0}),l=e(1),h=e(0),e=e(13),v=p(e),o={Numeric:g,Alphanumeric:m,"8BitByte":C,Kanji:k},a={" ":36,$:37,"%":38,"*":39,"+":40,"-":41,".":42,"/":43,":":44},c=[[],[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]],w=[[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,f=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,7,37,13],[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]],b=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,46,36],[1,46,30],[1,46,24],[1,46,16],[1,72,57],[1,72,44],[1,72,36],[1,72,24],[1,100,80],[1,100,60],[1,100,50],[1,100,34],[1,134,108],[1,134,82],[1,134,68],[2,67,23],[1,170,136],[2,85,53],[2,85,43],[2,85,29],[1,212,170],[2,106,66],[2,106,54],[3,70,24],[2,128,104],[2,128,80],[2,128,64],[3,85,29],[2,153,123],[2,153,93],[3,102,52],[3,102,34],[2,179,145],[2,179,111],[3,119,61],[4,89,31],[2,208,168],[4,104,64],[4,104,52],[5,83,29],[2,238,192],[4,119,73],[4,119,61],[5,95,33],[3,180,144],[4,135,83],[4,135,69],[6,90,32],[3,203,163],[4,152,92],[5,122,62],[6,101,35]],t.default={defaultConfig:n={version:"auto",errorCorrectionLevel:"L",model:2,mask:"auto",connection:!(y={Alphanumeric:[[6,11],[7,15],[8,16]],Numeric:[[4,6,6,13],[4,7,8,15],[5,8,9,17]]}),connectionNo:0,charCode:void 0,charset:"UTF-8",quietZone:{top:4,left:4,right:4,bottom:4}},MODE_INDICATOR:r={ECI:7,Numeric:1,Alphanumeric:2,"8BitByte":4,Kanji:8,StructuredAppend:3,FNC1First:5,FNC2Second:9,Terminator:0},isMode:A,getSizeByVersion:u=function t(e){return 4*e+17},getCharacterCountIndicatorbitsNumber:E,getAlphanumericCharValue:j,createModules:S,getMaskFunc:M,getAlignmentPattersPos:T,getErrorCorrectionCharacteristics:x,padCodewords0:s=236,padCodewords1:17,getMaskScore:_,maskFuncs:d=[function(t,e){return(t+e)%2==0},function(t){return t%2==0},function(t,e){return e%3==0},function(t,e){return(t+e)%3==0},function(t,e){return(Math.floor(t/2)+Math.floor(e/3))%2==0},function(t,e){return t*e%2+t*e%3==0},function(t,e){return(t*e%2+t*e%3)%2==0},function(t,e){return(t*e%3+(t+e)%2)%2==0}],addFormatInformation:N,getEstimatedVersion:R,getCharMode:O,EC_INDICATOR:i={L:1,M:0,Q:3,H:2},getModeCheckInfo:q,getParityData:L,utf8Encode:I,getCharCode:Z,sjisEncode:D,cloneModules:B}},function(t,e,n){"use strict";var r,i,i,w,n,o;function u(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function a(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function l(){return c(this,l),s(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t},i=n(10),i=a(i),w=n(0),f(l,o=i.default),r(l,[{key:"adjustDesiredSize",value:function t(e){var n,r,n,i,o,u,a,e,c,s,n=this.config,r=n.desiredSize,n=n.showLabel,i=this.quietZone,o=this.fontHeight,u=this.containerWidth,a=this.containerHeight;r&&(e=e.length+(0,w.getQuietZoneRelativeValue)(i.left)+(0,w.getQuietZoneRelativeValue)(i.right),u=u-(0,w.getQuietZonePixelValue)(i.left)-(0,w.getQuietZonePixelValue)(i.right),s=c=void 0,r.forceRounding?s=(c=~~(u/e))<1?1:c:c=s=u/e,this.style.unitValue=s,this.style.fontSizeInUnit=o/s,a=(a=n?a-o:a)-(0,w.getQuietZonePixelValue)(i.top)-(0,w.getQuietZonePixelValue)(i.bottom),this.height=a/s-(0,w.getQuietZoneRelativeValue)(i.top)-(0,w.getQuietZoneRelativeValue)(i.bottom),Object.keys(i).forEach(function(t){i[t].originIsAbsoluteValue&&(i[t].relativeValue=i[t].pixelValue/s)}))}},{key:"convertToShape",value:function t(e){var n,r,i,o,u,a,c,a,s,f,l,h,v,d,n=this.label,r=this.quietZone,i=this.isLabelBottom,o=this.height,u=this.config.showLabel,a=this.style,c=a.fontSizeInUnit,a=a.textAlign;if(u||(c=0),s=[],f=r.left.relativeValue,l=r.top.relativeValue,h=void 0,i?h=l+o:(h=l,l+=c),(0,w.combineTruthy)(e).forEach(function(t){0!==t?(s.push({type:"rect",x:f,y:l,width:t,height:o}),f+=t):f++}),u){switch(v=r.left.relativeValue,d=e.length,a){case"center":v+=d/2;break;case"right":v+=d}s.push({type:"text",x:v,y:h,text:n,textAlign:a,maxWidth:d})}this.size=i?{width:f+r.right.relativeValue,height:h+c+r.bottom.relativeValue}:{width:f+r.right.relativeValue,height:l+o+r.bottom.relativeValue},this.shapes=s}}]),n=l,e.default=n},function(t,e,n){"use strict";var r,i,o,n,u,a,c,s,f,l,h;function v(t){return t&&t.__esModule?t:{default:t}}function d(t,e){if(t===l.FNC1)return f.FNC1;if(t===l.FNC2)return f.FNC2;if(t===l.FNC3)return f.FNC3;var n=void 0;switch(e){case"A":return n=u.indexOf(t);case"B":return n=a.indexOf(t);case"C":return+t}}function w(t,e){var e=c[d(t,e)];if(e)return e;throw new r.InvalidCharException(t)}function b(t){return c[t]}function y(t){var n="";return(0,i.str2Array)(t).forEach(function(t,e){(0,i.isEven)(e)?n+=(0,i.strRepeat)("1",+t):n+=(0,i.strRepeat)("0",+t)}),n}function p(t){return!/\D/.test(t)}Object.defineProperty(e,"__esModule",{value:!0}),r=n(1),i=n(0),n=v(o=n(6)),u=[" ","!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/","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","[","\\","]","^","_","\0","\x01","\x02","\x03","\x04","\x05","\x06","\x07","\b","\t","\n","\v","\f","\r","\x0e","\x0f","\x10","\x11","\x12","\x13","\x14","\x15","\x16","\x17","\x18","\x19","\x1a","\x1b","\x1c","\x1d","\x1e","\x1f"," "," "," "," "," "," "," "," "," "," "],a=[" ","!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/","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","[","\\","]","^","_","`","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","{","|","}","~","\x7f"," "," "," "," "," "," "," "," "," "," "],c=["212222","222122","222221","121223","121322","131222","122213","122312","132212","221213","221312","231212","112232","122132","122231","113222","123122","123221","223211","221132","221231","213212","223112","312131","311222","321122","321221","312212","322112","322211","212123","212321","232121","111323","131123","131321","112313","132113","132311","211313","231113","231311","112133","112331","132131","113123","113321","133121","313121","211331","231131","213113","213311","213131","311123","311321","331121","312113","312311","332111","314111","221411","431111","111224","111422","121124","121421","141122","141221","112214","112412","122114","122411","142112","142211","241211","221114","413111","241112","134111","111242","121142","121241","114212","124112","124211","411212","421112","421211","212141","214121","412121","111143","111341","131141","114113","114311","411113","411311","113141","114131","311141","411131","211412","211214","211232"],s="2331112",f={CodeC:99,CodeB:100,CodeA:101,FNC1:102,FNC2:97,FNC3:96,StartA:103,StartB:104,StartC:105},l={CodeC:String.fromCharCode(204),CodeB:String.fromCharCode(205),CodeA:String.fromCharCode(206),FNC1:n.default.FNC1,FNC2:n.default.FNC2,FNC3:n.default.FNC3,StartA:String.fromCharCode(208),StartB:String.fromCharCode(209),StartC:String.fromCharCode(210)},e.default={getCharValue:d,getCharPattern:w,getPatternByIndex:b,Code128Sym:f,stopPattern:s,defaultConfig:h={height:60,showLabel:!0,codeSet:"auto",quietZone:{top:0,right:10,bottom:0,left:10},labelPosition:"bottom"},Code128Char:l,encode:y,isValideNumber:p}},function(t,e,n){"use strict";var r,i,o,u,a,c;Object.defineProperty(e,"__esModule",{value:!0}),e.default={FNC1:r="\xcf",FNC2:i="\xca",FNC3:o="\xc9",DataMatrixFNC1:u="\u2000",DataMatrixMacro05:a="\u2004",DataMatrixMacro06:c="\u2005"}},function(t,e,n){"use strict";var r,i,i,h,n,o;function u(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function a(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function l(){return c(this,l),s(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t},i=n(10),i=a(i),h=n(0),f(l,o=i.default),r(l,[{key:"adjustDesiredSize",value:function t(e){var n,r,n,i,o,u,a,c,e,s,f,l,n=this.config,r=n.desiredSize,n=n.showLabel,i=this.quietZone,o=this.fontHeight,u=this.containerWidth,a=this.containerHeight;r&&(c=e[0].length+(0,h.getQuietZoneRelativeValue)(i.left)+(0,h.getQuietZoneRelativeValue)(i.right),e=e.length+(0,h.getQuietZoneRelativeValue)(i.top)+(0,h.getQuietZoneRelativeValue)(i.bottom),u=u-(0,h.getQuietZonePixelValue)(i.left)-(0,h.getQuietZonePixelValue)(i.right),a=a-(0,h.getQuietZonePixelValue)(i.top)-(0,h.getQuietZonePixelValue)(i.bottom),l=f=s=void 0,f=r.forceRounding?(s=(s=~~(u/c))<1?1:s,(f=~~(a/e))<1?1:f):(s=u/c,a/e),this.style.unitValue=l=Math.min(s,f),this.style.fontSizeInUnit=o/l,this.height=(a=n?a-o:a)/l-(0,h.getQuietZoneRelativeValue)(i.top)-(0,h.getQuietZoneRelativeValue)(i.bottom),Object.keys(i).forEach(function(t){i[t].originIsAbsoluteValue&&(i[t].relativeValue=i[t].pixelValue/l)}))}},{key:"convertToShape",value:function t(e){var n,r,i,n=this.quietZone,r=[],i=n.top.relativeValue;e.forEach(function(t){var e=n.left.relativeValue;t.forEach(function(t){t&&r.push({type:"rect",x:e,y:i,width:1,height:1}),e++}),i++}),this.shapes=r,this.size={width:e[0].length+n.left.relativeValue+n.right.relativeValue,height:i+n.bottom.relativeValue}}}]),n=l,e.default=n},function(t,e,n){"use strict";var l,i,r,n,o,u,a,c,s,f,h,v,d,w,b,y,p;function g(t){return t&&t.__esModule?t:{default:t}}function m(t){var e=u.values[u.keys.indexOf(t)];if(e)return{symbolRows:e[0],symbolColumns:e[1],symbolDataCapacity:e[2],eccLength:e[3],interleavedBlocks:e[4],regions:e[5],regionRows:e[6],regionColumns:e[7]};throw new i.BadArgumentsException({ecc200SymbolSize:t})}function C(t,e){if("squareAuto"!==t&&"rectangularAuto"!==t)return m(t);for(var n="squareAuto"==t?0:24;n<u.keys.length;++n)if(u.values[n][2]>=e)return m(u.keys[n]);throw new i.TextTooLargeException}function k(t){var e=void 0,n=void 0;switch(t){case 1:case 2:e=1;break;case 4:e=2;break;case 16:e=4;break;case 36:e=6}return{rowOfRegion:e,colOfRegion:n=~~(t/e)}}function A(t,e){var n,r;for(e=e||t,n=[],r=0;r<t;r++)n.push((0,l.fillArray)(new Array(e),null));return n}function O(t){return s<t?t==o.FNC1Input?"FNC1":"ExtendedASCII":v<=t&&t<=d?"Numeric":w<=t&&t<=b?"LowerCasedLetter":y<=t&&t<=p?"UpperCasedLetter":"ASCIIOther"}function E(t){var e;switch(O(t)){case"Numeric":return t-44;case"UpperCasedLetter":return t-51;default:switch(t){case 13:return 0;case 42:return 1;case 62:return 2;case 32:return 3}}return o.InvalidTripletValue}function j(t,e){if("X12"==t)return E(e);if(e<32)return e;if(32==e)return 3;if(e<48)return e-33;if(e<58)return e-44;if(e<65)return e-43;if(e<91)return"C40"==t?e-51:e-64;if(e<96)return e-69;if(96==e)return 0;if(e<123)return"C40"==t?e-96:e-83;if(e<128)return e-96;if(e==c||e==a)return e-128;throw new i.InvalidCharException(String.fromCharCode(e))}function S(t){return v<=t&&t<=d}function T(t,e){return"X12"===t?0:e<32?1:32==e?0:e<48?2:e<58?0:e<65?2:e<91?"C40"==t?0:3:e<96?2:96==e?3:e<123?"C40"===t?3:0:e==o.TripletFNC1||e==o.TripletUppershift?2:3}function x(t,e){var n,r,n=[];if(e==o.FNC1Input){if("X12"==t)throw new i.InvalidCharException("FNC1");e=o.TripletFNC1}else if(s<e){if("C40"!=t&&"Text"!=t)throw new i.InvalidCharException(String.fromCharCode(e));n.push(o.TripletShifts[2]),n.push(j(t,o.TripletUppershift)),e-=f}return 0<(r=T(t,e))&&n.push(o.TripletShifts[r]),n.push(j(t,e)),n}function M(t){return t<32||94<t?o.InvalidTripletValue:t&o.EDIFACTMask}function B(t,e,n){var t=t+o.PseudoRandomSeed*e%n+1;return n+1<t?t-n-1:t}function _(t){var e,n,r,e=[];if(0<t.length){for(n=t[0],r=1;r<t.length;++r)t[r].charSet!=n.charSet?(0<n.length&&e.push((0,l.assign)({},n)),n.charSet=t[r].charSet,n.start=t[r].start,n.length=t[r].length):n.length+=t[r].length;0<n.length&&e.push(n)}return e}function N(t,e,n,r){for(var i,o,u,a,c,s,f,i=e.regionColumns,o=e.regionRows,u=t[n*=o+=2],a=r*=i+=2;a<r+i;a++)(0,l.isEven)(a)?u[a]=1:u[a]=0;for(c=t[n+o-1],s=r;s<r+i;s++)c[s]=1;for(f=n;f<n+o;f++)t[f][r]=1,(0,l.isEven)(f)?t[f][r+i-1]=0:t[f][r+i-1]=1}function D(t,e,n,r,i){for(var o,u,a,c,s,f,l,h,o=e.regionColumns,u=e.regionRows,a=n*(u+2)+1,c=r*(o+2)+1,s=n*u,f=r*o,l=0;l<u;++l)for(h=0;h<o;++h)t[a+l][c+h]=i[s+l][f+h]}Object.defineProperty(e,"__esModule",{value:!0}),l=n(0),i=n(1),n=g(r=n(6)),o={FNC1Input:n.default.DataMatrixFNC1.charCodeAt(0),Macro05Input:n.default.DataMatrixMacro05.charCodeAt(0),Macro06Input:n.default.DataMatrixMacro06.charCodeAt(0),StructuredAppand:233,FileIdentifierMax:254,ASCIIPad:129,ASCIIUpperShift:235,ASCIIFNC1:232,Macro05:236,Macro06:237,TripletUppershift:158,TripletFNC1:155,TripletPad:0,InvalidTripletValue:255,LatchToC40:230,LatchToBase256:231,LatchToX12:238,LatchToText:239,LatchToEDIFACT:240,TripletUnlatch:254,EDIFACTUnlatch:31,PseudoRandomSeed:149,PadRandomBase:253,Base256RandomBase:255,Base256SmallBlockSize:249,EDIFACTMask:63,Unvisited:255,TripletShifts:[255,0,1,2],MaxCodeWrods:2178,MaxStructures:16,MaxLookAheadOffset:50},u={keys:["square10","square12","square14","square16","square18","square20","square22","square24","square26","square32","square36","square40","square44","square48","square52","square64","square72","square80","square88","square96","square104","square120","square132","square144","rectangular8x18","rectangular8x32","rectangular12x26","rectangular12x36","rectangular16x36","rectangular16x48"],values:[[10,10,3,5,1,1,8,8],[12,12,5,7,1,1,10,10],[14,14,8,10,1,1,12,12],[16,16,12,12,1,1,14,14],[18,18,18,14,1,1,16,16],[20,20,22,18,1,1,18,18],[22,22,30,20,1,1,20,20],[24,24,36,24,1,1,22,22],[26,26,44,28,1,1,24,24],[32,32,62,36,1,4,14,14],[36,36,86,42,1,4,16,16],[40,40,114,48,1,4,18,18],[44,44,144,56,1,4,20,20],[48,48,174,68,1,4,22,22],[52,52,204,84,2,4,24,24],[64,64,280,112,2,16,14,14],[72,72,368,144,4,16,16,16],[80,80,456,192,4,16,18,18],[88,88,576,224,4,16,20,20],[96,96,696,272,4,16,22,22],[104,104,816,336,6,16,24,24],[120,120,1050,408,6,36,18,18],[132,132,1304,496,8,36,20,20],[144,144,1558,620,10,36,22,22],[8,18,5,7,1,1,6,16],[8,32,10,11,1,2,6,14],[12,26,16,14,1,1,10,24],[12,36,22,18,1,2,10,16],[16,36,32,24,1,2,14,16],[16,48,49,28,1,2,14,22]]},s=127,v=48,d=57,w=97,b=122,y=65,p=90,e.default={getSymbolInfo:m,getInfoOfRegions:k,createModules:A,CONSTANTS:o,getTripletCharValue:j,getRandomizedValue:B,getCharType:O,getSuitableSymbolSize:C,isDigit:S,getTripletCharSetChannel:T,getX12Value:E,getEDIFACTValue:M,getTripletEncodeValues:x,mergeUnits:_,TripletUppershift:a=158,TripletFNC1:c=155,ASCIIMax:s,ExtendedASCIIMin:f=128,Space:h=32,NumericMin:v,NumericMax:d,LowerCasedLetterMin:w,LowerCasedLetterMax:b,UpperCasedLetterMin:y,UpperCasedLetterMax:p,setRegionData:D,setFinder:N}},function(t,e,n){"use strict";var r,i,o,u,a,c,s,f,l,h,v,d;Object.defineProperty(e,"__esModule",{value:!0}),l=["BBAAA","BABAA","BAABA","BAAAB","ABBAA","AABBA","AAABB","ABABA","ABAAB","AABAB"],e.default={NORMAL_GUARD:r="101",CENTRE_GUARD:i="01010",TABLE:a={A:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],B:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"],C:["1110010","1100110","1101100","1000010","1011100","1001110","1010000","1000100","1001000","1110100"]},leftStructure:c=["AAAAAA","AABABB","AABBAB","AABBBA","ABAABB","ABBAAB","ABBBAA","ABABAB","ABABBA","ABBABA"],rightStructure:s="CCCCCC",defaultConfig:h={height:60,showLabel:!0,labelPosition:"bottom",addOnHeight:"auto",addOnLabelPosition:"top",quietZone:{top:0,right:7,bottom:0,left:11,addOn:5}},get2DigitAddOnTable:v=function t(e){switch((e=parseInt(e))%4){case 0:return{leftStructure:"A",rightStructure:"A"};case 1:return{leftStructure:"A",rightStructure:"B"};case 2:return{leftStructure:"B",rightStructure:"A"};case 3:return{leftStructure:"B",rightStructure:"B"}}},ean8LeftStructure:f="AAAA",ADD_ON_DELINEATOR:u="01",get5DigitAddOnTable:d=function t(e){var n,r,e,i,o,n=+(e+="")[0]+ +e[2]+ +e[4],e=+e[1]+ +e[3];return l[(o=(r=3*n)+(i=9*e))%10]},ADD_ON_GUARD:o="1011"}},function(t,e,n){"use strict";var r,i,d,o;function u(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function w(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function b(t){var e,e,t,n,r,i,o,u,a,c,s,f,e,l,c,r,h,v,v,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};for(h in w(this,b),this.config=(0,d.deepMerge)({},e,t),t=(e=this.config).text,n=e.quietZone,r=e.unitSize,i=e.height,o=e.backgroundColor,u=e.color,a=e.renderType,c=e.labelPosition,s=e.desiredSize,f=e.showLabel,e=e.font,(0,d.isDefined)(t)&&(this.config.text+=""),(0,d.isDefined)(c)&&(this.isLabelBottom="top"!==c),r=(0,d.fixSize2PixelDefault)(r),e.fontSize=(0,d.fixSize2PixelDefault)(e.fontSize),l=(0,d.convertUnit)(r),c=(0,d.measureText)(t,e),this.fontHeight=c,this.style=(0,d.assign)({},e,{backgroundColor:o,color:u,fontSizeInUnit:r=f?c/l:0,unitValue:l,renderType:a,fontHeight:c}),n=(0,d.assign)({},n))n.hasOwnProperty(h)&&(v=n[h],(0,d.isNumberLike)(v)?n[h]={relativeValue:+v,originIsAbsoluteValue:!1}:(v=(0,d.convertUnit)(v),n[h]={relativeValue:v/l,originIsAbsoluteValue:!0,pixelValue:v}));this.quietZone=n,(0,d.isDefined)(i)&&((0,d.isNumberLike)(i)?this.height=+i-r-n.top.relativeValue-n.bottom.relativeValue:this.height=(0,d.convertUnit)(i)/l-r-n.top.relativeValue-n.bottom.relativeValue),s&&(this.containerWidth=(0,d.convertUnit)((0,d.fixSize2PixelDefault)(s.width)),this.containerHeight=(0,d.convertUnit)((0,d.fixSize2PixelDefault)(s.height))),this.shapes=[],this.size={width:0,height:0},this.validate()}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t},i=n(1),d=n(0),r(b,[{key:"validate",value:function t(){throw new i.SubclassNotImplementException}},{key:"adjustDesiredSize",value:function t(){throw new i.SubclassNotImplementException}},{key:"convertToShape",value:function t(){throw new i.SubclassNotImplementException}}]),e.default=b},function(t,e,n){"use strict";var r,i,o,u,u,a,c,a,s,a,f,a,l,a,h,n,v;function d(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function w(t){return t&&t.__esModule?t:{default:t}}function b(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function p(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function g(t){var e,t,n,e,e=1<arguments.length&&void 0!==arguments[1]&&arguments[1];return b(this,g),n=(t=y(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,t,c.default.defaultConfig))).config.text,(t.isUccEan128=e)&&n[0]!==c.default.Code128Char.FNC1&&(n=c.default.Code128Char.FNC1+n),t.text=n,t.label=n.replace(/[^\x20-\x7E]/g,""),e=t.calculateData(),t.adjustDesiredSize(e),t.convertToShape(e),t}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&d(t.prototype,e),n&&d(t,n),t},o=w(i=n(2)),u=n(4),u=w(u),a=n(5),c=w(a),a=n(27),s=w(a),a=n(28),f=w(a),a=n(29),l=w(a),a=n(30),h=w(a),p(g,v=u.default),r(g,[{key:"validate",value:function t(){}},{key:"calculateData",value:function t(){var e,n,r,i,e=this.config,n=this.text,r,i=void 0;if(this.isUccEan128)i=new h.default(n);else switch(e.codeSet){case"A":i=new s.default(n);break;case"B":i=new f.default(n);break;case"C":i=new l.default(n);break;default:i=new h.default(n)}return i.getData()}}]),n=g,e.default=n,o.default.registerEncoder("Code128",n)},function(t,e,n){"use strict";var r,i,i,C,n,o,n,u;function a(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function c(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function h(t){var t,e,n;return s(this,h),e=(t=f(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,t,o.default.defaultConfig))).style.textAlign,n=t.config.addOnLabelPosition,t.isTextGroup="group"===e,t.isAddOnLabelBottom="top"!==n,t}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t},i=n(4),i=c(i),C=n(0),n=n(9),o=c(n),l(h,u=i.default),r(h,[{key:"encode",value:function t(e,n){var i,r,i=(0,C.str2Array)(n),r;return(0,C.str2Array)(e).reduce(function(t,e,n){var r;return t+=o.default.TABLE[i[n]][e]},"")}},{key:"encodeChar",value:function t(e,n,r){var n,i,n=(0,C.str2Array)(n),i;return o.default.TABLE[n[r]][e]}},{key:"checksum",value:function t(e){var n,e,r,i,n,n=1<arguments.length&&void 0!==arguments[1]&&arguments[1],e=(0,C.str2Array)(e),r=n?C.isOdd:C.isEven,i,n=e.reduce(function(t,e,n){return e=+e,t+=r(n)?e:3*e},0)%10;return 0==n?0:10-n}},{key:"convertToShape",value:function t(e){var c,n,r,i,s,f,l,o,u,h,v,d,w,b,y,o,p,g,m,a,c=this.isTextGroup,n=this.isLabelBottom,r=this.addOnHeight,i=this.isAddOnLabelBottom,s=this.height,f=this.quietZone,l=this.config.showLabel,o=this.style,u=o.fontSizeInUnit,h=o.textAlign;l||(u=0),r=r||0,v=[],d=void 0,w=f.left.relativeValue,b=f.top.relativeValue,a=m=g=p=o=y=void 0,n?(d=s+5,y=b+s,o=l?s+u:d,i?g=(p=b)+(m="auto"===r?l?s:d:r):(p=(g=b)+u,m="auto"===r?d-u:r)):(d=s,s-=5,y=b,b+=u,o=l?d+u:d,i?(p=f.top.relativeValue,g=p+(m="auto"===r?l?s:d:r)):(g=f.top.relativeValue,p=f.top.relativeValue+u,m="auto"===r?d:r)),a=l?m+u:m,e.forEach(function(t){var e,n,r,i,o,u,a,e=b,n=s,r=y,i=c?"center":h,o=void 0,u=w;switch(t.role){case"GUARD":n=d,o=t.binary.length;break;case"ADDON":e=p,n=m,r=g,o=t.binary.length;break;case"LEFT_QUIET_ZONE":i="left",o=f.left.relativeValue,u=0;break;case"RIGHT_QUIET_ZONE":case"NO_ADDON_RIGHT_QUIET_ZONE":i="right",o=f.right.relativeValue;break;case"ADDON_QUIET_ZONE":o=f.addOn.relativeValue;break;case"ADDON_RIGHT_QUIET_ZONE":i="right",r=g,o=f.right.relativeValue;break;default:o=t.binary.length}if(l&&t.text){switch(i){case"center":u+=o/2;break;case"right":u+=o}a={type:"text",x:u,y:r,text:t.text,textAlign:i,maxWidth:o},"NO_ADDON_RIGHT_QUIET_ZONE"!==t.role&&"ADDON_RIGHT_QUIET_ZONE"!==t.role||(a.fontStyle="normal",a.fontWeight="normal",a.textDecoration="none"),v.push(a)}t.binary?(0,C.combineTruthy)(t.binary).forEach(function(t){0!==t?(v.push({type:"rect",x:w,y:e,width:t,height:n}),w+=t):w++}):"ADDON_QUIET_ZONE"===t.role&&(w+=o)}),this.size={width:w+f.right.relativeValue,height:Math.max(o,a)+f.top.relativeValue+f.bottom.relativeValue},this.shapes=v}},{key:"adjustDesiredSize",value:function t(e){var n,r,i,o,n,u,a,c,s,f,e,l,h,n=this.config,r=n.desiredSize,i=n.showLabel,o=n.addOn,n=n.addOnHeight,u=this.fontHeight,a=this.containerWidth,c=this.containerHeight,s=this.addOnHeightInPiexl,f=this.quietZone;r&&(e=(e=e.reduce(function(t,e){return e.binary&&(t+=e.binary.length),t},0))+(0,C.getQuietZoneRelativeValue)(f.left)+(0,C.getQuietZoneRelativeValue)(f.right),o&&(e+=(0,C.getQuietZoneRelativeValue)(f.addOn),a-=(0,C.getQuietZonePixelValue)(f.addOn)),a=a-(0,C.getQuietZonePixelValue)(f.left)-(0,C.getQuietZonePixelValue)(f.right),h=l=void 0,r.forceRounding?h=(l=~~(a/e))<1?1:l:l=h=a/e,this.style.unitValue=h,this.style.fontSizeInUnit=u/h,c=(c=i?c-u:c)-(0,C.getQuietZonePixelValue)(f.top)-(0,C.getQuietZonePixelValue)(f.bottom),this.height=c/h-(0,C.getQuietZoneRelativeValue)(f.top)-(0,C.getQuietZoneRelativeValue)(f.bottom),Object.keys(f).forEach(function(t){f[t].originIsAbsoluteValue&&(f[t].relativeValue=f[t].pixelValue/h)}),(0,C.isDefined)(o))&&"auto"!==n&&((n=(0,C.isNumberLike)(n)?+n:s/h)>this.height?this.addOnHeight=this.height:this.addOnHeight=n)}}]),n=h,e.default=n},function(t,e,n){"use strict";var r,i,o,u;function a(t){for(var e=0;0!=t;)e+=1,t>>>=1;return e}function c(t,e){for(var e,n,e=2===e?o:u,n=t<<10;0<=a(n)-a(r);)n^=r<<a(n)-a(r);return(t<<10|n)^e}function s(t){for(var e=t<<12;0<=a(e)-a(i);)e^=i<<a(e)-a(i);return t<<12|e}Object.defineProperty(e,"__esModule",{value:!0}),r=1335,i=7973,o=21522,u=10277,e.default={getBCH15:c,getBCH18:s}},function(t,e,n){"use strict";var r,i,f,i,o,c,u;function a(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t){var e,n,r,i,i;l(this,h),e=t.version,n=t.model,r=t.text,i=t.charCode,this.charCode=i||f.default.getCharCode(r),i=f.default.EC_INDICATOR[t.errorCorrectionLevel],this.config=t,this.errorCorrectionLevel=i,this.model=+n,e="auto"===e?this.getAutoVersion():+e,this.version=e,this.modulesCount=f.default.getSizeByVersion(e),this.charCountIndicatorBitsNumber=f.default.getCharacterCountIndicatorbitsNumber(e),this.errorCorrectionCharacteristics=f.default.getErrorCorrectionCharacteristics(e,i,this.model),this.totalDataCount=this.errorCorrectionCharacteristics.reduce(function(t,e){return t+e.data},0),this.totalDataBits=8*this.totalDataCount}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t},i=n(3),f=s(i),i=n(55),o=s(i),c=n(1),r(h,[{key:"getConnections",value:function t(){for(var e,n,r,i,o,u,a,c,s,f,l,e=this.totalDataBits,n=this.charCode,r=e-20,i=n.length,o=0,u=1,a=[],c=n[0];u<=i;)s=n.slice(o,u),f=this.analysisData(s),(l=this.encodeData(f)).length>r?(a.push(c),o=u-1):u===i&&a.push(s),c=s,u++;return a}},{key:"processConnection",value:function t(e){var n,r,i,r,i,o,u,u,a,n=this.totalDataBits,r=this.config,i=r.connection,r=r.connectionNo;if(r=+r,i){if((i=Math.ceil(e.length/(n-20)))-1<r)throw new c.ConnectionOverflowException(i);return u=(o=this.getConnections())[r],u=this.analysisData(u),a=this.encodeData(u,{connectionNo:r,connectionCnt:i})}if(e.length>n)throw new c.TextTooLargeException;return e}},{key:"padBuffer",value:function t(e){var n=this.totalDataBits;for(e.length+4<=n&&e.put(f.default.MODE_INDICATOR.Terminator,4);e.length%8!=0;)e.putBit(!1);for(;;){if(e.length>=n)break;if(e.put(f.default.padCodewords0,8),e.length>=n)break;e.put(f.default.padCodewords1,8)}}},{key:"getAutoVersion",value:function t(){for(var e,n,r,i,o,u,a,e=this.errorCorrectionLevel,n=this.charCode,r=this.model,i,o=f.default.getEstimatedVersion(e,n,r);o<40;o++)if(this.version=o,this.modulesCount=f.default.getSizeByVersion(this.version),this.charCountIndicatorBitsNumber=f.default.getCharacterCountIndicatorbitsNumber(this.version),this.errorCorrectionCharacteristics=f.default.getErrorCorrectionCharacteristics(this.version,e),this.totalDataCount=this.errorCorrectionCharacteristics.reduce(function(t,e){return t+e.data},0),this.totalDataBits=8*this.totalDataCount,u=this.analysisData(n),!((a=this.encodeData(u)).length>this.totalDataBits))return o;throw new c.TextTooLargeException}},{key:"analysisData",value:function t(o){var u,a,e,n,n,n,r,n,c,s,u=this.version,a=this.config.charset,e=f.default.getCharMode(o[0],a);switch(e){case"Alphanumeric":n=f.default.getModeCheckInfo(e,u),n=o.slice(1,1+n[0]),f.default.isMode("8BitByte",n)&&(e="8BitByte");break;case"Numeric":n=f.default.getModeCheckInfo(e,u),r=o.slice(1,1+n[0]),n=o.slice(1,1+n[1]),f.default.isMode("8BitByte",r)?e="8BitByte":f.default.isMode("Alphanumeric",n)&&(e="Alphanumeric")}return s=[c={mode:e,code:[]}],o.forEach(function(t,e){var n,r,i,r,i,r,i,n=f.default.getCharMode(t,a);c.mode===n?c.code.push(t):"8BitByte"===c.mode?"Kanji"===n?(c={mode:n,code:[t]},s.push(c)):"Numeric"===n?(r=f.default.getModeCheckInfo(n,u),i=o.slice(e,e+r[2]),o.length-e>=r[2]&&f.default.isMode(n,i)?(c={mode:n,code:[t]},s.push(c)):c.code.push(t)):"Alphanumeric"===n&&(r=f.default.getModeCheckInfo(n,u),i=o.slice(e,e+r[1]),o.length-e>=r[1])&&f.default.isMode(n,i)?(c={mode:n,code:[t]},s.push(c)):c.code.push(t):"Alphanumeric"!==c.mode||"Kanji"===n||"8BitByte"===n||"Numeric"===n&&(r=f.default.getModeCheckInfo(n,u),i=o.slice(e,e+r[2]),o.length-e>=r[2])&&f.default.isMode(n,i)?(c={mode:n,code:[t]},s.push(c)):c.code.push(t)}),s}},{key:"encodeData",value:function t(){throw new c.SubclassNotImplementException}},{key:"generateErrorCorrectionCode",value:function t(n){var e,r,i,e=this.errorCorrectionCharacteristics,r=[],i=0;return e.forEach(function(t){var e=n.getBuffer().slice(i,i+t.data);r.push({data:e,ec:(0,o.default)(e,t.ec,t.data)}),i+=t.data}),r}},{key:"getFinalMessage",value:function t(){throw new c.SubclassNotImplementException}},{key:"setModules",value:function t(){throw new c.SubclassNotImplementException}},{key:"maskModules",value:function t(){throw new c.SubclassNotImplementException}},{key:"autoMask",value:function t(){throw new c.SubclassNotImplementException}},{key:"addRectModule",value:function t(e,n,r,i){for(var o,u,a,c,s,o=4<arguments.length&&void 0!==arguments[4]&&arguments[4],u=this.modules,a=i+n,c=r+e;n<a;n++)for(s=e;s<c;s++)u[n][s]=+o}},{key:"addPositionDetectionPattern",value:function t(){var e,n,r,r,e,n=this.modules.length;this.addPattern(0,0,7),this.addRectModule(7,0,1,8,!1),this.addRectModule(0,7,8,1,!1),this.addPattern(r=n-7,0,7),this.addRectModule(r-1,0,1,8,!1),this.addRectModule(r-1,7,8,1,!1),this.addPattern(0,r=n-7,7),this.addRectModule(7,r-1,1,8,!1),this.addRectModule(0,r-1,8,1,!1)}},{key:"addTimingPattern",value:function t(){for(var e,n,r,i,e=this.modules,n=e.length,r=!0,i=8;i<n-7;i++)e[6][i]=+r,e[i][6]=+r,r=!r}},{key:"addPattern",value:function t(e,n,r){this.addRectModule(e,n,r,r,!0),this.addRectModule(e+1,n+1,r-2,r-2,!1),this.addRectModule(e+2,n+2,r-4,r-4,!0)}},{key:"getMatrix",value:function t(){throw new c.SubclassNotImplementException}}]),e.default=h},function(t,e,n){"use strict";var r,n,i,o;function u(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function a(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){c(this,s),this.mode="8BitByte",this.data=t,this.bytes="Shift_JIS"===e?i.default.sjisEncode(t):i.default.utf8Encode(t)}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t},n=n(3),i=a(n),r(s,[{key:"getMode",value:function t(){return i.default.MODE_INDICATOR["8BitByte"]}},{key:"getLength",value:function t(){return this.bytes.length}},{key:"write",value:function t(e){this.bytes.forEach(function(t){e.put(t,8)})}}]),e.default=s},function(t,e,n){"use strict";var r,i,o,u,a;function c(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function s(t){return t&&t.__esModule?t:{default:t}}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t){f(this,l),this.mode="Numeric",this.data=t}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),t},i=n(3),o=s(i),u=n(0),r(l,[{key:"getMode",value:function t(){return o.default.MODE_INDICATOR.Numeric}},{key:"getLength",value:function t(){return this.data.length}},{key:"write",value:function t(n){(0,u.sliceArray)(this.data,3,function(t){var e=parseInt(t.reduce(function(t,e){return t+String.fromCharCode(e)},""));switch(t.length){case 1:return void n.put(e,4);case 2:return void n.put(e,7);default:return void n.put(e,10)}})}}]),e.default=l},function(t,e,n){"use strict";var r,i,o,u,a;function c(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function s(t){return t&&t.__esModule?t:{default:t}}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t){f(this,l),this.mode="Alphanumeric",this.data=t}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),t},i=n(3),o=s(i),u=n(0),r(l,[{key:"getMode",value:function t(){return o.default.MODE_INDICATOR.Alphanumeric}},{key:"getLength",value:function t(){return this.data.length}},{key:"write",value:function t(r){(0,u.sliceArray)(this.data,2,function(t){var e,t,n,e=o.default.getAlphanumericCharValue(t[0]);2===t.length?(t=o.default.getAlphanumericCharValue(t[1]),r.put(n=45*e+t,11)):r.put(e,6)})}}]),e.default=l},function(t,e,n){"use strict";var r,n,i,o;function u(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function a(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t){c(this,s),this.mode="Kanji",this.data=t}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t},n=n(3),i=a(n),r(s,[{key:"getMode",value:function t(){return i.default.MODE_INDICATOR.Kanji}},{key:"getLength",value:function t(){return this.data.length}},{key:"write",value:function t(u){this.data.forEach(function(t){var e,n,r,i,o,e=void 0;33088<t&&t<40956?e=192*(n=(t-=33088)>>>8)+(r=255&t):57408<t&&t<60351&&(e=192*(i=(t-=49472)>>>8)+(o=255&t)),u.put(e,13)})}}]),e.default=s},function(t,e,n){"use strict";var r,i;function o(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];u(this,a),this.buffer=t,this.length=8*t.length,this.index=0}Object.defineProperty(e,"__esModule",{value:!0}),(r=function(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t})(a,[{key:"putBit",value:function t(e){var n=Math.floor(this.length/8);this.buffer.length<=n&&this.buffer.push(0),e&&(this.buffer[n]|=128>>>this.length%8),this.length+=1}},{key:"put",value:function t(e,n){for(var r=0;r<n;r+=1)this.putBit(1==(e>>>n-r-1&1))}},{key:"getAt",value:function t(e){var n=Math.floor(e/8);return 1==(this.buffer[n]>>>7-e%8&1)}},{key:"getBuffer",value:function t(){return this.buffer}},{key:"next",value:function t(){return this.index++,this.getAt(this.index-1)}}]),e.default=a},function(t,e,n){n(21),n(11),n(31),n(33),n(35),n(37),n(45),n(48),n(49),n(53),n(57),n(58),t.exports=n(2)},function(t,e,n){"use strict";var r,i,i,o,u,a,c,s,f,l,c,h;function v(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function d(t){return t&&t.__esModule?t:{default:t}}function w(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function b(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function y(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function p(t){var t,e,n,r,e,i,o,u,a,c,i,n,o;return w(this,p),n=(e=(t=b(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,t,s.default.defaultConfig))).config).checkDigit,r=e.text,e=e.nwRatio,o=(i=t.getTextEntity(r)).originStartPattern,u=i.startPattern,a=i.content,c=i.originStopPattern,i=i.stopPattern,n?(n=t.checksum(a),t.text=u+a+n+i,t.label=o+a+n+c):(t.text=u+a+i,t.label=r),t.nwRatio=+e,o=t.calculateData(),t.adjustDesiredSize(o),t.convertToShape(o),t}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&v(t.prototype,e),n&&v(t,n),t},i=n(4),i=d(i),u=d(o=n(2)),a=n(0),c=n(26),s=d(c),f=n(1),l=/^([A-D]?)([0-9\-\$\:\.\+\/]+)([A-D]?)$/,y(p,h=i.default),r(p,[{key:"validate",value:function t(){var e=this.config,n=e.text,e=e.nwRatio;if(!l.test(n))throw new f.InvalidTextException(n);if(2!=e&&3!=e)throw new f.BadArgumentsException({nwRatio:e},"NwRatio is 2 or 3")}},{key:"getTextEntity",value:function t(e){var e,n,r,i,e,o,e=l.exec(e),n=e[1],r,i=e[2],e=e[3],o;return{originStartPattern:n,startPattern:n||"A",content:i,originStopPattern:e,stopPattern:e||"B"}}},{key:"encode",value:function t(e){var n,r,i,o,n=this.nwRatio,r="",i=(0,a.strRepeat)("1",n),o=(0,a.strRepeat)("0",n);return(0,a.str2Array)(e).forEach(function(t,e){(0,a.isEven)(e)?r+="1"===t?i:"1":r+="1"===t?o:"0"}),r}},{key:"calculateData",value:function t(){var e,n,r,e=this,n=this.text,r="";return(0,a.sliceString)(n,1,function(t){r=r+e.encode(s.default.TABLE[t])+"0"}),r=r.substr(0,r.length-1)}},{key:"checksum",value:function t(e){var t;return t=0!==(t=(0,a.str2Array)(e).filter(function(t){return(0,a.isInteger)(+t)}).reverse().reduce(function(t,e,n){var e,n,e=(0,a.toNumber)(e);return(0,a.isEven)(n)?t+=9<(n=2*e)?n-9:n:t+=e,t},0)%10)?10-t:t}}]),c=p,e.default=c,u.default.registerEncoder("Codabar",c)},function(t,e){var n,n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";var r,i,o,i,u,a,c;function s(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function f(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){var n=void 0;return"svg"===t?(n=document.createElementNS("http://www.w3.org/2000/svg","svg")).setAttribute("xmlns","http://www.w3.org/2000/svg"):n=document.createElement("canvas"),n.setAttribute("width",e.width),n.setAttribute("height",e.height),n}function v(t,e){var n,r;switch(l(this,v),this.container=t,this.barcode=e,this.style=e.style,n=this.style.unitValue,this.size={width:e.size.width*n,height:e.size.height*n},r=h(this.style.renderType,this.size),this.style.renderType){case"svg":this.context=new u.default(r,this.style,n);break;case"canvas":this.context=new o.default(r,this.style,n);break;default:throw new a.UnrecognizedRenderException(this.style.renderType)}t&&t.appendChild(r),this.renderDom=r}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t},i=n(24),o=f(i),i=n(25),u=f(i),a=n(1),r(v,[{key:"render",value:function t(){var e,n,r,e=this.style,n=this.barcode.shapes,r=this.context;return r.clear(),r.setColor(e.color),r.setBackgroundColor(e.backgroundColor),n.forEach(function(t){"rect"===t.type&&r.drawRect(t),"text"===t.type&&r.drawText(t)}),this}},{key:"getImageData",value:function t(){if(this.context.getImageData)return this.context.getImageData();throw new a.MethodNotImplementException("getImageData")}},{key:"getDataUrl",value:function t(){return this.context.getDataUrl()}},{key:"destroy",value:function t(){this.container&&this.container.removeChild(this.renderDom)}}]),e.default=v},function(t,e,n){"use strict";var r,i;function o(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e,n){u(this,a),this.dom=t,this.style=e,this.ctx=this.dom.getContext("2d"),this.scale=n}Object.defineProperty(e,"__esModule",{value:!0}),(r=function(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t})(a,[{key:"setColor",value:function t(e){this.ctx.fillStyle=e}},{key:"setBackgroundColor",value:function t(e){var n=this.ctx,r=this.dom;n.save(),n.fillStyle=e,n.fillRect(0,0,r.width,r.height),n.restore()}},{key:"drawRect",value:function t(e){var n=this.ctx,r=this.scale;n.fillRect(e.x*r,e.y*r,e.width*r,e.height*r)}},{key:"drawText",value:function t(e){var n,r,i,o,u,n=this.ctx,r=this.style,i=this.scale;n.save(),n.font=(e.fontStyle||r.fontStyle)+" "+(e.fontWeight||r.fontWeight)+" "+r.fontSize+" "+r.fontFamily,n.textAlign=e.textAlign||r.textAlign,n.textBaseline="top",o=e.x*i,u=e.y*i,n.fillText(e.text,o,u,e.maxWidth*i),this.drawTextDecorationLine(e.text,o,u,e.textDecoration||r.textDecoration),n.restore()}},{key:"drawTextDecorationLine",value:function t(e,n,r,i){var o,i,u,a,e,o=void 0;switch(i){case"underline":o=.8;break;case"overline":o=.1;break;case"line-through":o=.5;break;default:return}switch(i=this.ctx,u=this.style.fontHeight,a=i.measureText(e).width,i.textAlign){case"center":n-=a/2;break;case"right":n-=a}i.lineWidth=1,i.beginPath(),i.moveTo(n,e=u*o+r),i.lineTo(n+a,e),i.stroke()}},{key:"clear",value:function t(){var e=this.ctx,n=this.dom;e.clearRect(0,0,n.width,n.height)}},{key:"getImageData",value:function t(){var e=this.ctx,n=this.dom;return e.getImageData(0,0,n.width,n.height)}},{key:"getDataUrl",value:function t(){return this.dom.toDataURL()}}]),e.default=a},function(t,e,n){"use strict";var r,a,i;function o(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(){return document.documentMode}function s(t,e,n){u(this,s),this.dom=t,this.style=e,this.scale=n,this.color="rgb(0,0,0)",this.addGroup()}Object.defineProperty(e,"__esModule",{value:!0}),a={center:"middle",left:"start",right:"end"},(r=function(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t})(s,[{key:"setColor",value:function t(e){this.color=e}},{key:"setBackgroundColor",value:function t(e){var n;this.dom.style.backgroundColor=e}},{key:"addGroup",value:function t(){var e=this.dom;this.g=document.createElementNS("http://www.w3.org/2000/svg","g"),this.g.setAttribute("shape-rendering","crispEdges"),e.appendChild(this.g)}},{key:"drawRect",value:function t(e){var n,r,i,o,n=this.g,r=this.scale,i=this.color,o=document.createElementNS("http://www.w3.org/2000/svg","rect");o.setAttribute("x",e.x*r),o.setAttribute("y",e.y*r),o.setAttribute("width",e.width*r),o.setAttribute("height",e.height*r),o.style.fill=i,n.appendChild(o)}},{key:"drawText",value:function t(e){var n,r,i,o,u,i,n=this.g,r=this.scale,i=this.color,o=this.style,u=document.createElementNS("http://www.w3.org/2000/svg","text");u.style.fill=i,u.style.fontSize=o.fontSize,u.style.fontFamily=o.fontFamily,u.style.fontStyle=e.fontStyle||o.fontStyle,u.style.fontWeight=e.fontWeight||o.fontWeight,u.style.textDecoration=e.textDecoration||o.textDecoration,u.style.textAnchor=a[e.textAlign||o.textAlign],u.textContent=e.text,u.textContent=this.clipString(e,u),c()?(i=this.meatureText(u),u.setAttribute("y",e.y*r+Math.abs(i.y))):(u.style.alignmentBaseline="before-edge",u.setAttribute("y",e.y*r)),u.setAttribute("x",e.x*r),n.appendChild(u)}},{key:"clipString",value:function t(e,n){var r,i,o,n,r,r=this.scale,i=e.text,o=e.maxWidth,n=this.meatureText(n);return n.width>(o*=r)?(r=Math.floor(o/n.width*i.length),e.text.substr(0,r)):i}},{key:"clear",value:function t(){var e;this.dom.removeChild(this.g),this.addGroup()}},{key:"meatureText",value:function t(e){return e.setAttribute("x",0),e.setAttribute("y",0),this.dom.appendChild(e),e.getBBox()}},{key:"getDataUrl",value:function t(){return"data:image/svg+xml;base64,"+btoa(this.dom.outerHTML)}}]),e.default=s},function(t,e,n){"use strict";var r,i;Object.defineProperty(e,"__esModule",{value:!0}),e.default={defaultConfig:r={height:60,showLabel:!0,labelPosition:"bottom",checkDigit:!1,quietZone:{top:0,right:10,bottom:0,left:10},nwRatio:3},TABLE:i={0:"0000011",1:"0000110",2:"0001001",3:"1100000",4:"0010010",5:"1000010",6:"0100001",7:"0100100",8:"0110000",9:"1001000","-":"0001100",$:"0011000",":":"1000101","/":"1010001",".":"1010100","+":"0010101",A:"0011010",B:"0101001",C:"0001011",D:"0001110"}}},function(t,e,n){"use strict";var r,i,o,u,a,c;function s(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function f(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t){l(this,h),this.text=t,this.validate()}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t},i=n(5),o=f(i),u=n(1),a=n(0),r(h,[{key:"validate",value:function t(){var e,n,e=this.text,n;if(!/^[\x00-\x5F\xC8-\xCF]+$/.test(e))throw new u.InvalidTextException(e)}},{key:"getData",value:function t(){var e,n,r,i,e=this.text,n=this.checksum(),r="",i=o.default.getPatternByIndex(o.default.Code128Sym.StartA);return r+=o.default.encode(i),(0,a.sliceString)(e,1,function(t){var t=o.default.getCharPattern(t,"A");r+=o.default.encode(t)}),r=(r+=o.default.encode(o.default.getPatternByIndex(n)))+o.default.encode(o.default.stopPattern)}},{key:"checksum",value:function t(){var e,n,r,e=this.text,n=0,r=0;return(0,a.sliceString)(e,1,function(t){r+=o.default.getCharValue(t,"A")*++n}),(r+=o.default.Code128Sym.StartA)%103}}]),e.default=h},function(t,e,n){"use strict";var r,i,o,u,a,c;function s(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function f(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t){l(this,h),this.text=t,this.validate()}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t},i=n(5),o=f(i),u=n(1),a=n(0),r(h,[{key:"validate",value:function t(){var e,n,e=this.text,n;if(!/^[\x20-\x7F\xC8-\xCF]+$/.test(e))throw new u.InvalidTextException(e)}},{key:"getData",value:function t(){var e,n,r,i,e=this.text,n=this.checksum(),r="",i=o.default.getPatternByIndex(o.default.Code128Sym.StartB);return r+=o.default.encode(i),(0,a.sliceString)(e,1,function(t){var t=o.default.getCharPattern(t,"B");r+=o.default.encode(t)}),r=(r+=o.default.encode(o.default.getPatternByIndex(n)))+o.default.encode(o.default.stopPattern)}},{key:"checksum",value:function t(){var e,n,r,e=this.text,n=0,r=0;return(0,a.sliceString)(e,1,function(t){r+=o.default.getCharValue(t,"B")*++n}),(r+=o.default.Code128Sym.StartB)%103}}]),e.default=h},function(t,e,n){"use strict";var r,i,o,u,a,c;function s(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function f(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t){l(this,h),this.text=t,this.validate()}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t},i=n(5),o=f(i),u=n(0),a=n(1),r(h,[{key:"validate",value:function t(){var e,n,e=this.text,n;if(!/^(\xCF*[0-9]{2}\xCF*)+$/.test(e))throw new a.InvalidTextException(e)}},{key:"getData",value:function t(){var e,n,r,i,e=this.text,n=this.checksum(),r="",i=o.default.getPatternByIndex(o.default.Code128Sym.StartC);return r+=o.default.encode(i),(0,u.sliceString)(e,2,function(t){var t=o.default.getCharPattern(t,"C");r+=o.default.encode(t)}),r=(r+=o.default.encode(o.default.getPatternByIndex(n)))+o.default.encode(o.default.stopPattern)}},{key:"checksum",value:function t(){var e,n,r,e=this.text,n=0,r=0;return(0,u.sliceString)(e,2,function(t){r+=o.default.getCharValue(t,"C")*++n}),(r+=o.default.Code128Sym.StartC)%103}}]),e.default=h},function(t,e,n){"use strict";var r,i,s,o,u,f,l,h,a;function c(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function v(t){return t&&t.__esModule?t:{default:t}}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function w(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1];d(this,w),this.text=t,this.isUccEan128=e,this.validate()}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),t},i=n(5),s=v(i),o=n(0),u=n(1),f="A",l="B",h="C",r(w,[{key:"validate",value:function t(){var e,n,e=this.text,n;if(!/^[\x00-\x7F\xC8-\xD3]+$/.test(e))throw new u.InvalidTextException(e)}},{key:"calculateGroup",value:function t(){var e,n,r,i,o,u,a,c,e=this.text,n,r={code:this.isUccEan128?h:l,text:""},i=[];for(i.push(r),o=0,u=e.length;o<u;o++){if(a=r.code,c=e[o],r.code!==h&&o+3<u&&s.default.isValideNumber(e.substr(o,4))||r.code===h&&o+1<u&&s.default.isValideNumber(e.substr(o,2)))a=h,c+=e[++o];else if(a=r.code===h?l:r.code,s.default.getCharValue(c,a)<0&&(a=r.code===f?l:f,s.default.getCharValue(c,a)<0))continue;r.code!==a?i.push(r={code:a,text:c}):r.text+=c}return i.filter(function(t){return t.text})}},{key:"getData",value:function t(){var e,n,r,e=this.calculateGroup(),n=this.checksum(e),r="";return e.forEach(function(e,t){var t,t;0===t?(t=s.default.getPatternByIndex(s.default.Code128Sym["Start"+e.code]),r+=s.default.encode(t)):(t=s.default.getPatternByIndex(s.default.Code128Sym["Code"+e.code]),r+=s.default.encode(t)),e.code===h?(0,o.sliceString)(e.text,2,function(t){r+=s.default.encode(s.default.getCharPattern(t,e.code))}):(0,o.sliceString)(e.text,1,function(t){r+=s.default.encode(s.default.getCharPattern(t,e.code))})}),r=(r+=s.default.encode(s.default.getPatternByIndex(n)))+s.default.encode(s.default.stopPattern)}},{key:"checksum",value:function t(e){var r=0,i=0;return e.forEach(function(t,e){var n,t,e,n=t.code,t=t.text;0===e?i+=s.default.Code128Sym["Start"+n]:(e=s.default.Code128Sym["Code"+n],i+=e*++r),n===h?(0,o.sliceString)(t,2,function(t){i+=s.default.getCharValue(t,n)*++r}):(0,o.sliceString)(t,1,function(t){i+=s.default.getCharValue(t,n)*++r})}),i%103}}]),e.default=w},function(t,e,n){"use strict";var r,i,i,o,u,a,c,s,f,c,l;function h(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function v(t){return t&&t.__esModule?t:{default:t}}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function w(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function b(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function y(t){var t,e,n,r,i,o,e,i,r,r,u,a,u,r;return d(this,y),n=(e=(t=w(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,t,s.default.defaultConfig))).config).text,r=e.checkDigit,i=e.fullASCII,o=e.nwRatio,e=e.labelWithStartAndStopCharacter,i=i?s.default.getFullASCIIChar(n):n,r?(r=s.default.getMod43Val(i),t.text=s.default.START_STOP_CHARACTERS+i+r+s.default.START_STOP_CHARACTERS,u=s.default.START_STOP_CHARACTERS+(r=n+r)+s.default.START_STOP_CHARACTERS,t.label=e?u:r):(t.text=s.default.START_STOP_CHARACTERS+i+s.default.START_STOP_CHARACTERS,u=s.default.START_STOP_CHARACTERS+n+s.default.START_STOP_CHARACTERS,t.label=e?u:n),t.nwRatio=+o,r=t.calculateData(),t.adjustDesiredSize(r),t.convertToShape(r),t}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&h(t.prototype,e),n&&h(t,n),t},i=n(4),i=v(i),u=v(o=n(2)),a=n(0),c=n(32),s=v(c),f=n(1),b(y,l=i.default),r(y,[{key:"validate",value:function t(){var e,n,r,e,i,e=this.config,n=e.text,r=e.fullASCII,e=e.nwRatio,i;if(!r&&!/^[0-9A-Z\-\.\ \$\/\+\%]+$/.test(n))throw new f.InvalidTextException(n);if(2!=e&&3!=e)throw new f.BadArgumentsException({nwRatio:e},"NwRatio is 2 or 3")}},{key:"encode",value:function t(e){var n,r,i,o,n=this.nwRatio,r="",i=(0,a.strRepeat)("1",n),o=(0,a.strRepeat)("0",n);return(0,a.str2Array)(e).forEach(function(t,e){(0,a.isEven)(e)?r+="1"===t?i:"1":r+="1"===t?o:"0"}),r}},{key:"calculateData",value:function t(){var e,n,r,e=this,n=this.text,r="";return(0,a.sliceString)(n,1,function(t){r=r+e.encode(s.default.TABLE[t])+"0"}),r=r.substr(0,r.length-1)}}]),c=y,e.default=c,u.default.registerEncoder("Code39",c)},function(t,e,n){"use strict";var r,i,n,o,u,a,c;function s(t){var e=0;return(0,i.sliceString)(t,1,function(t){e+=a.indexOf(t)}),a[e%43]}function f(e){var n="";return(0,i.sliceString)(e,1,function(t){var t=c[t.charCodeAt(0)];if(!t)throw new r.InvalidTextException(e);n+=t}),n}Object.defineProperty(e,"__esModule",{value:!0}),r=n(1),i=n(0),n={height:60,showLabel:!0,checkDigit:!1,fullASCII:!1,labelPosition:"bottom",nwRatio:3,labelWithStartAndStopCharacter:!1,quietZone:{top:0,right:10,bottom:0,left:10}},o={0:"000110100",1:"100100001",2:"001100001",3:"101100000",4:"000110001",5:"100110000",6:"001110000",7:"000100101",8:"100100100",9:"001100100",A:"100001001",B:"001001001",C:"101001000",D:"000011001",E:"100011000",F:"001011000",G:"000001101",H:"100001100",I:"001001100",J:"000011100",K:"100000011",L:"001000011",M:"101000010",N:"000010011",O:"100010010",P:"001010010",Q:"000000111",R:"100000110",S:"001000110",T:"000010110",U:"110000001",V:"011000001",W:"111000000",X:"010010001",Y:"110010000",Z:"011010000","-":"010000101",".":"110000100"," ":"011000100",$:"010101000","/":"010100010","+":"010001010","%":"000101010","*":"010010100"},u="*",a=(0,i.str2Array)("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"),c=["%U","$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","%A","%B","%C","%D","%E"," ","/A","/B","/C","/D","/E","/F","/G","/H","/I","/J","/K","/L","-",".","/O","0","1","2","3","4","5","6","7","8","9","/Z","%F","%G","%H","%I","%J","%V","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","%K","%L","%M","%N","%O","%W","+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","%P","%Q","%R","%S","%T"],e.default={TABLE:o,START_STOP_CHARACTERS:u,defaultConfig:n,getMod43Val:s,getFullASCIIChar:f}},function(t,e,n){"use strict";var r,i,i,o,u,a,B,_,N,a,c;function s(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function f(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function v(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function d(t){var t,e,e;return l(this,d),e=(t=h(this,(d.__proto__||Object.getPrototypeOf(d)).call(this,t,B.default.defaultConfig))).config.text,t.text=e,t.label=e.replace(/[\xc9-\xcf]/g,""),t.mode=B.default.isNumericOnly(e)?2:0,t.getModes(),e=t.calculateData(),t.adjustDesiredSize(e),t.convertToShape(e),t}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t},i=n(7),i=f(i),u=f(o=n(2)),a=n(34),B=f(a),_=n(0),N=n(1),v(d,c=i.default),r(d,[{key:"validate",value:function t(){var e,n,e,r,e=this.config,n=e.text,e=e.grouping,r;if(!/^[\x00-\x80\xcf\xca\xc9]+$/.test(n))throw new N.InvalidTextException(n);if(!e&&81<n.length)throw new N.TextTooLargeException}},{key:"getModes",value:function t(){var e,n,r,n,r,i,o,u,a,c,e=this.text,n=this.config,r=n.grouping,n=n.groupNo;if(r&&1<(r=B.default.getTextGroup(e)).length){if(9<r.length)throw new N.GroupSizeException(r.length);if(n>r.length-1)throw new N.GroupOverflowException(r.length);this.groupCount=r.length,this.mode=3,e=r[n]}for(i=[],u=o=0,a=e.length;o<a;){for(;u<a&&!(e[u]<"0"||"9"<e[u]);)u++;o=5<=u-o?(i.push({mode:"number",text:e.substring(o,u)}),u):((c=i[i.length-1])&&"alpha"===c.mode?c.text+=e.substring(o,u+1):i.push({mode:"alpha",text:e.substring(o,u+1)}),++u)}this.modes=i}},{key:"encodeNumeric",value:function t(e){var n=void 0,r=void 0;switch(e.length){case 3:return[~~((n=+e)/48),n%48];case 4:return[~~((n=+e+1e5)/2304),~~(n%2304/48),n%48];case 5:return[~~((n=+e)/2304),~~(n%2304/48),n%48];case 6:return n=e.substr(0,5),this.encodeNumeric(n).concat([+e[5]]);case 7:return n=e.substr(0,4),r=e.substr(4,3),this.encodeNumeric(n).concat(this.encodeNumeric(r));case 8:return n=e.substr(0,5),r=e.substr(5,3),this.encodeNumeric(n).concat(this.encodeNumeric(r));case 9:return n=e.substr(0,5),r=e.substr(5,4),this.encodeNumeric(n).concat(this.encodeNumeric(r));default:return n=e.substr(0,5),r=e.substr(5,e.length),this.encodeNumeric(n).concat(this.encodeNumeric(r))}}},{key:"encodeAlpha",value:function t(e){return(0,_.str2Array)(e).reduce(function(t,e){return t=t.concat(B.default.getCharValue(e))},[])}},{key:"calculateData",value:function t(){var r,e,i,n,o,u,e,a,c,o,n,s,f,l,h,v,d,w,b,y,p,g,m,C,e,k,A,O,E,j,S,T,x,M,r=this,e=this.modes,i=this.mode,n=this.groupCount,o=this.config.groupNo,u=e.reduce(function(t,e,n){return(t="number"===e.mode?(0===n&&2!==i&&t.push(B.default.CODE_NS),t.concat(r.encodeNumeric(e.text))):t.concat(r.encodeAlpha(e.text))).push(B.default.CODE_NS),t},[]);for(u.pop(),3===i&&u.unshift(B.default.getGroupInfo(o,n)),e=u.length%7;u.length%7!=0;)u.push(B.default.CODE_NS);if(a=[],(0,_.sliceArray)(u,7,function(t){var e=t.reduce(function(t,e){return t+e},0);t.push(e%49),a=a.concat(t)}),(6<=(c=u.length/7)%8||2<e||0==e||c%8==1)&&(a=a.concat((0,_.fillArray)(new Array(8),B.default.CODE_NS)),c++),8<c)throw new N.TextTooLargeException;if(s=(a[a.length-2]=o=7*(c-2)+i)*(n=B.default.getWeight(0,0)).z,f=o*n.y,l=o*n.x,h=8*(c-1)/2,6<c){for(d=v=0;v<h;v++,d+=2)s+=(w=B.default.getWeight(1+~~(v/4),v%4)).z*(49*a[d]+a[d+1]);a[a.length-8]=~~((s%=2401)/49),a[a.length-7]=~~(s%49)}for(h++,y=b=0;b<h;b++,y+=2)f+=(p=B.default.getWeight(1+~~(b/4),b%4)).y*(49*a[y]+a[y+1]);for(a[a.length-6]=~~((f%=2401)/49),a[a.length-5]=~~(f%49),h++,m=g=0;g<h;g++,m+=2)l+=(C=B.default.getWeight(1+~~(g/4),g%4)).x*(49*a[m]+a[m+1]);for(a[a.length-4]=~~((l%=2401)/49),a[a.length-3]=~~(l%49),e=a.slice(8*c-8,8*c-1),a[a.length-1]=e.reduce(function(t,e){return t+e},0)%49,k=[],O=a.length,E=A=0;A<O;A+=8,E++){for(j=a.slice(A,A+8),k.push(S=[]),x=T=0;T<8;T+=2,x++)M=49*j[T]+j[T+1],S.push(B.default.getParityPattern(M,E,x,c));S.unshift(B.default.START_PATTERN),S.push(B.default.STOP_PATTERN)}return k}},{key:"convertToShape",value:function t(n){var e,r,i,o,u,a,c,a,s,f,l,h,v,d,w,b,y,e=this.label,r=this.isLabelBottom,i=this.height,o=this.quietZone,u=this.config.showLabel,a=this.style,c=a.fontSizeInUnit,a=a.textAlign;if(u||(c=0),s=[],l=(i-(f=1))/n.length-1,h=70+o.left.relativeValue+o.right.relativeValue,v=0,d=o.top.relativeValue,w=void 0,r?w=d+i:(w=d,d+=c),s.push({type:"rect",x:v,y:d,width:h,height:1}),d+=1,n.forEach(function(t,e){v=o.left.relativeValue,t.forEach(function(t){(0,_.combineTruthy)(t).forEach(function(t){0!==t?(s.push({type:"rect",x:v,y:d,width:t,height:l}),v+=t):v++})}),0===e&&e===n.length-1||(s.push({type:"rect",x:o.left.relativeValue,y:d-1,width:70,height:1}),d+=1+l)}),s.push({type:"rect",x:0,y:d-1,width:h,height:1}),u){switch(b=0,y=h,a){case"center":b+=y/2;break;case"right":b+=y}s.push({type:"text",x:b,y:w,text:e,textAlign:a,maxWidth:y})}this.size=r?{width:v+o.right.relativeValue,height:w+c+o.bottom.relativeValue}:{width:v+o.right.relativeValue,height:d+o.bottom.relativeValue},this.shapes=s}},{key:"adjustDesiredSize",value:function t(e){var n,r,n,i,o,u,a,e,c,n=this.config,r=n.desiredSize,n=n.showLabel,i=this.quietZone,o=this.fontHeight,u=this.containerWidth,a=this.containerHeight;r&&(e=(e=e[0].reduce(function(t,e){return t+e.length},0))+(0,_.getQuietZoneRelativeValue)(i.left)+(0,_.getQuietZoneRelativeValue)(i.right),u=u-(0,_.getQuietZonePixelValue)(i.left)-(0,_.getQuietZonePixelValue)(i.right),c=void 0,c=r.forceRounding?(c=~~(u/e))<1?1:c:u/e,this.style.unitValue=c,this.style.fontSizeInUnit=o/c,this.height=(a=n?a-o:a)/c-(0,_.getQuietZoneRelativeValue)(i.top)-(0,_.getQuietZoneRelativeValue)(i.bottom),Object.keys(i).forEach(function(t){i[t].originIsAbsoluteValue&&(i[t].relativeValue=i[t].pixelValue/c)}))}}]),a=d,e.default=a,u.default.registerEncoder("Code49",a)},function(t,e,n){"use strict";var r,i,o,u,a,c,s,f,l,h,v,d,w;function b(t){return t&&t.__esModule?t:{default:t}}function y(t){var e;return/^\d{5,81}$/.test(t)}function p(t){var e,e,n,e=l.indexOf(t);return-1<e?[e]:(e=t.charCodeAt(0),(0,o.str2Array)(n=h[e]).map(function(t){return l.indexOf(t)}))}function g(t,e){var t=s[t][e];return{x:t[0],y:t[1],z:t[2]}}function m(t,e,n,r){var i,o,u,i,o=void 0,u=void 0;return(u=((o=!(e===r-1)&&f[e][n])?a:c)[t]).toString(2)}function C(t,e){for(var n=2,r=1;n<e;)r+=n,n++;return r+t}function k(t){return(0,o.str2Array)(t).reduce(function(t,e){return-1<l.indexOf(e)?t++:t+=2,t},0)}function A(t){for(var e,n,r,i,o,e=0,n=1,r=t.length,i=[];n<r;)48<k(o=t.substring(e,n))&&(i.push(t.substring(e,n-1)),e=n-1),n++;return i.push(t.substring(e,n)),i}Object.defineProperty(e,"__esModule",{value:!0}),i=b(r=n(6)),o=n(0),a=[51520,62032,60576,64296,58784,63848,56128,63184,64948,50336,61736,39232,58960,63892,56480,63272,64970,35648,58064,52640,62312,47936,61136,64436,49744,36e3,58152,52816,62356,48288,61224,64458,34208,57704,50896,61876,40352,59240,63962,57040,63412,49448,34384,57748,50984,61898,40528,59284,57128,63434,33488,50024,36560,58292,53096,62426,48848,61364,33576,50068,36648,58314,53140,33128,49588,34664,57818,51124,40808,59354,57268,53568,62544,64788,59808,64104,55104,62928,64884,51360,61992,45376,60496,64276,37696,58576,63796,55712,63080,64922,52128,62184,46912,60880,64372,50256,61716,39072,58920,63882,56400,63252,35232,57960,52432,62260,47520,61032,64410,50640,61812,39840,59112,63930,56784,63348,49704,35920,58132,52776,62346,48208,61204,34e3,57652,50792,61850,40144,59188,56936,63386,49896,36304,58228,52968,62394,48592,61300,49428,34344,57738,50964,40488,59274,33384,49972,36456,58266,53044,48744,61338,49524,34536,57786,51060,40680,59322,57204,33556,50058,36628,33076,49562,34612,51098,40756,33652,50106,36724,53178,49012,53408,62504,64778,41792,59600,64052,54176,62696,64826,44864,60368,64244,51280,61972,45216,60456,64266,37280,58472,63770,55504,63028,51664,62068,45984,60648,64314,38816,58856,63866,56272,63220,50216,61706,38992,58900,56360,63242,35024,57908,52328,62234,47312,60980,50408,61754,39376,58996,56552,63290,35792,58100,52712,62330,48080,61172,49684,35880,58122,52756,33896,57626,50740,40040,59162,56884,49780,36072,58170,52852,48360,61242,34280,57722,50932,40424,59258,57076,49418,34324,50954,33332,49946,36404,53018,49466,34420,51002,40564,57146,33524,50042,36596,53114,48884,33546,33050,34586,33594,36666,33146,34682,40826,53328,62484,41376,59496,64026,53712,62580,42912,59880,64122,55248,62964,51240,61962,45136,60436,37072,58420,55400,63002,51432,62010,45520,60532,37840,58612,55784,63098,52200,62202,47056,60916,50196,38952,58890,34920,57882,52276,47208,60954,50292,39144,58938,56436,35304,57978,52468,47592,61050,50676,39912,59130,56820,49674,35860,33844,50714,39988,49722,35956,52794,48244,34036,50810,40180,56954,49914,36340,52986,48628,34314,33306,36378,34362,40506,33402,36474,48762,34554,40698,53288,62474,41168,59444,53480,62522,41936,59636,54248,62714,45008,60404,51220,36968,58394,55348,51316,45288,60474,37352,58490,55540,51700,46056,60666,38888,58874,56308,50186,34868,52250,50234,39028,56378,35060,52346,47348,50426,39412,56570,35828,52730,48116,33818,35898,33914,40058,36090,48378,34298,40442,62752,64840,56e3,63152,64940,51776,62096,60704,64328,52576,62296,47808,61104,64428,50464,61768,39488,59024,63908,56608,63304,64978,50864,61868,40288,59224,63958,57008,63404,49808,36128,58184,52880,62372,48416,61256,64466,50008,36528,58284,53080,62422,48816,61356,49480,34448,57764,51016,61906,40592,59300,57160,63442,49580,34648,57814,51116,40792,59350,57260,33608,50084,36680,58322,53156,48968,61394,59744,64088,54976,62896,64876,53824,62608,64804,60192,64200,37568,58544,63788,55648,63064,64918,52064,62168,46784,51488,62024,45632,60560,64292,38464,58768,63844,56096,63176,64946,35168,57944,52400,62252,47456,61016,64406,50608,61804,39776,50320,61732,39200,58952,63890,56464,63268,35616,58056,52624,62308,47904,61128,64434,33968,57644,50776,61846,40112,59180,56920,63382,49880,36272,49736,35984,58148,48560,52808,62354,48272,61220,34192,57700,50888,61874,40336,59236,57032,63410,33368,49964,36440,58262,53036,48728,61334,49516,34520,49444,34376,57746,40664,50980,40520,59282,57124,33480,50020,36552,58290,53092,48840,61362,33068,49558,34604,51094,40748,33644,33572,36716,50066,36644,49004,53138,33124,49586,34660,51122,40804,57266,41664,59568,64044,54112,62680,64822,53536,62536,64786,44736,60336,64236,42560,59792,64100,55072,62920,64882,37216,58456,63766,55472,63020,51632,62060,45920,51344,61988,45344,60488,64274,38752,58840,63862,37664,58568,63794,55696,63076,52112,62180,46880,60872,64370,34992,57900,52312,62230,47280,60972,50392,61750,39344,50248,61714,39056,58916,56392,63250,35760,58092,35216,57956,48048,52424,62258,47504,61028,50632,61810,39824,59108,56776,63346,33880,57622,50732,40024,59158,56876,49772,36056,49700,35912,58130,48344,52772,48200,61202,34264,57718,33992,57650,40408,50788,40136,59186,56932,49892,36296,58226,52964,48584,61298,33324,49942,36396,53014,49462,34412,49426,34340,40556,50962,40484,33516,33380,36588,49970,36452,48876,53042,48740,49522,34532,51058,40676,57202,33046,34582,33590,33554,36662,36626,33142,33074,34678,34610,40822,40754,33650,36722,49010,41312,59480,64022,53680,62572,53392,62500,42848,59864,64118,41760,59592,64050,55216,62956,54160,62692,44832,60360,64242,37040,58412,55384,62998,51416,62006,45488,51272,61970,45200,60452,37808,58604,37264,58468,55496,63026,52184,62198,47024,51656,62066,45968,60644,38800,58852,56264,63218,34904,57878,52268,47192,60950,50284,39128,50212,38984,58898,56356,35288,57974,35016,57906,47576,52324,47304,60978,50668,39896,50404,39368,58994,56548,35784,58098,52708,48072,61170,33836,50710,39980,49718,35948,49682,35876,48236,52754,34028,33892,40172,50738,40036,56882,49910,36332,49778,36068,48620,52850,48356,34276,50930,40420,57074,33302,36374,34358,34322,40502,33398,33330,36470,36402,48758,34550,34418,40694,40562,33522,36594,48882,41136,59436,53464,62518,53320,62482,41904,59628,41360,59492,54232,62710,53704,62578,44976,60396,42896,59876,55240,62962,36952,58390,55340,51308,45272,51236,45128,60434,37336,58486,37064,58418,55396,51692,46040,51428,45512,60530,38872,58870,37832,58610,55780,52196,47048,60914,34860,52246,50230,39020,50194,38948,35052,34916,47340,52274,47204,50422,39404,50290,39140,56434,35820,35300,48108,52466,47588,50674,39908,56818,33814,35894,35858,33910,33842,40054,39986,36086,35954,48374,48242,34294,34034,40438,40178,36338,48626,41048,59414,53356,53284,41432,59510,41160,59442,53740,53476,42968,59894,41928,59634,55276,54244,36908,51254,45164,51218,37100,36964,55346,51446,45548,51314,45284,37868,37348,55538,52214,47084,51698,46052,34838,38966,34934,34866,47222,39158,39026,35318,35058,47606,47346,39926,39410,6e4,64152,54336,62736,64836,60784,64348,38080,58672,63820,55904,63128,64934,51744,62088,46144,60688,64324,39648,59064,63918,56688,63324,35424,58008,52528,62284,47712,61080,64422,50448,61764,39456,59016,63906,56592,63300,36208,58204,52920,62382,48496,61276,34096,57676,50840,61862,40240,59212,56984,63398,49800,36112,58180,52872,62370,48400,61252,34488,57774,51036,40632,59310,57180,33432,49996,36504,58278,53068,48792,61350,49476,34440,57762,51012,40584,59298,57156,33628,50094,36700,53166,48988,33100,49574,34636,51110,40780,57254,33604,50082,36676,53154,48964,53984,62648,64814,44480,60272,64220,42176,59696,64076,54880,62872,64870,53792,62600,64802,44096,60176,64196,51568,62044,45792,60600,64302,38624,58808,63854,37472,58520,63782,55600,63052,52016,62156,46688,51472,62020,45600,60552,64290,38432,58760,63842,56080,63172,50360,61742,39280,58972,56504,63278,35696,58076,35120,57932,47984,52376,62246,47408,61004,50584,61798,39728,50312,61730,39184,58948,56456,63266,35600,58052,52616,62306,47888,61124,49756,36024,58158,52828,48312,61230,34232,57710,33944,57638,40376,50764,40088,59174,56908,49868,36248,49732,35976,58146,48536,52804,48264,61218,34184,57698,50884,40328,59234,57028,49454,34396,50990,40540,57134,33500,33356,36572,49958,36428,48860,53030,48716,49510,34508,49442,34372,40652,50978,40516,57122,33476,50018,36548,53090,48836,33582,36654,33134,33062,34670,34598,40814,40742,33638,33570,36710,36642,48998,33122,34658,40802,53616,62556,42720,59832,64110,41568,59544,64038,55152,62940,54064,62668,53520,62532,44640,60312,64230,42528,59784,64098,55056,62916,51384,61998,45424,60508,37744,58588,37168,58444,55448,63014,52152,62190,46960,51608,62054,45872,51336,61986,45328,60484,38704,58828,37648,58564,55688,63074,52104,62178,46864,60868,50268,39096,58926,56412,35256,57966,34968,57894,47544,52300,47256,60966,50652,39864,50380,39320,50244,39048,58914,56388,35736,58086,35208,57954,48024,52420,47496,61026,50628,39816,59106,56772,49710,35932,52782,48220,34012,33868,40156,50726,40012,56870,49902,36316,49766,36044,49698,48604,35908,48332,52770,48196,34252,33988,40396,50786,40132,56930,49890,36292,52962,48580,34350,40494,33390,33318,36462,36390,48750,34542,34406,40686,34338,40550,40482,33510,33378,36582,36450,48870,48738,34530,40674,53432,62510,41840,59612,41264,59468,54200,62702,53656,62566,53384,62498,44912,60380,42800,59852,41744,59588,55192,62950,54152,62690,44816,60356,51292,45240,60462,37304,58478,37016,58406,55372,51676,46008,51404,45464,51268,45192,60450,38840,58862,37784,58598,37256,58466,55492,52172,47e3,51652,45960,60642,38792,58850,56260,50222,39004,56366,35036,34892,47324,52262,47180,50414,39388,50278,39116,50210,38980,56354,35804,35276,48092,35012,47564,52322,47300,50662,39884,50402,39364,56546,35780,52706,48068,35886,33902,33830,40046,39974,36078,35942,48366,35874,48230,34286,34022,40430,33890,40166,40034,36326,36066,48614,48354,34274,40418,53340,41400,59502,41112,59430,53724,53452,53316,42936,59886,41880,59622,41352,59490,55260,54220,53700,44952,60390,42888,59874,51246,45148,37084,36940,55334,51438,45532,51302,45260,51234,45124,37852,37324,37060,55394,52206,47068,51686,46028,51426,45508,38860,37828,55778,38958,34926,34854,47214,39150,39014,38946,35310,35046,47598,34914,47334,47202,39918,39398,39138,35814,35298,48102,47586,53294,41180,41036,53486,53350,53282,41948,41420,41156,54254,53734,53474,45020,42956,41924,36974,36902,45294,45158,37358,37094,36962,46062,45542,45282,38894,37862,37346,54496,62776,64846,43200,59952,64140,54304,62728,64834,56048,63164,51824,62108,46304,60728,64334,37984,58648,63814,55856,63116,51728,62084,46112,60680,64322,52600,62302,47856,61116,50488,61774,39536,59036,56632,63310,35376,57996,52504,62278,47664,61068,50440,61762,39440,59012,56584,63298,50876,40312,59230,57020,49820,36152,58190,52892,48440,61262,34072,57670,50828,40216,59206,56972,49796,36104,58178,52868,48392,61250,50014,36540,53086,48828,49486,34460,51022,40604,57166,33420,49990,36492,53062,48780,49474,34436,51010,40580,57154,34654,40798,33614,36686,48974,33094,34630,40774,33602,36674,48962,59768,64094,55024,62908,53872,62620,44256,60216,64206,42080,59672,64070,54832,62860,53776,62596,44064,60168,64194,37616,58556,55672,63070,52088,62174,46832,51512,62030,45680,60572,38512,58780,37424,58508,55576,63046,51992,62150,46640,51464,62018,45584,60548,38416,58756,56072,63170,35192,57950,52412,47480,61022,50620,39800,50332,39224,58958,56476,35640,58062,35096,57926,47928,52364,47384,60998,50572,39704,50308,39176,58946,56452,35592,58050,52612,47880,61122,33980,50782,40124,56926,49886,36284,49742,35996,48572,52814,48284,34204,33932,40348,50758,40076,56902,49862,36236,49730,35972,48524,52802,48260,34180,50882,40324,57026,33374,36446,48734,34526,34382,40670,40526,33486,33350,36558,36422,48846,48710,34502,34370,40646,40514,33474,36546,48834,41712,59580,54136,62686,53560,62542,44784,60348,42608,59804,41520,59532,55096,62926,54040,62662,53512,62530,44592,60300,42512,59780,55048,62914,37240,58462,55484,51644,45944,51356,45368,60494,38776,58846,37688,58574,37144,58438,55436,52124,46904,51596,45848,51332,45320,60482,38680,58822,37640,58562,55684,52100,46856,60866,35004,52318,47292,50398,39356,50254,39068,56398,35772,35228,48060,34956,47516,52294,47244,50638,39836,50374,39308,50242,39044,56386,35724,35204,48012,52418,47492,50626,39812,56770,33886,40030,36062,35918,48350,48206,34270,33998,40414,33862,40142,40006,36302,36038,48590,35906,48326,48194,34246,33986,40390,40130,36290,48578,41336,59486,53692,53404,42872,59870,41784,59598,41240,59462,55228,54172,53644,53380,44856,60366,42776,59846,41736,59586,55180,54148,37052,55390,51422,45500,51278,45212,37820,37276,37004,55366,52190,47036,51662,45980,51398,45452,51266,45188,38812,37772,37252,55490,52166,46988,51650,45956,34910,47198,39134,38990,35294,35022,47582,34886,47310,47174,39902,39374,39110,38978,35790,35270,48078,35010,47558,47298,39878,39362,41148,53470,53326,41916,41372,41100,54238,53710,53446,53314,44988,42908,41868,41348,55246,54214,53698,36958,45278,45134,37342,37070,36934,46046,45518,45254,45122,38878,37838,37318,37058,47054,46022,45506,41054,41438,41166,41030,42974,41934,41414,41154,43488,60024,64158,54384,62748,43104,59928,64134,54288,62724,60796,38128,58684,55928,63134,51768,62094,46192,60700,37936,58636,55832,63110,51720,62082,46096,60676,39672,59070,56700,35448,58014,52540,47736,61086,50460,39480,59022,56604,35352,57990,52492,47640,61062,50436,39432,59010,56580,36220,52926,48508,34108,50846,40252,56990,49806,36124,52878,48412,34060,50822,40204,56966,49794,36100,52866,48388,34494,40638,33438,36510,48798,34446,40590,33414,36486,48774,34434,40578,54008,62654,44528,60284,42224,59708,54904,62878,53816,62606,44144,60188,42032,59660,54808,62854,53768,62594,44048,60164,51580,45816,60606,38648,58814,37496,58526,55612,52028,46712,51484,45624,60558,38456,58766,37400,58502,55564,51980,46616,51460,45576,60546,38408,58754,56068,50366,39292,56510,35708,35132,47996,52382,47420,50590,39740,50318,39196,56462,35612,35084,47900,52358,47372,50566,39692,50306,39172,56450,35588,52610,47876,36030,48318,34238,33950,40382,40094,36254,35982,48542,48270,34190,33926,40334,40070,36230,35970,48518,48258,34178,40322,53628,42744,59838,41592,59550,55164,54076,53532,44664,60318,42552,59790,41496,59526,55068,54028,53508,44568,60294,42504,59778,51390,45436,37756,37180,55454,52158,46972,51614,45884,51342,45340,38716,37660,37132,55430,52110,46876,51590,45836,51330,45316,38668,37636,55682,39102,35262,34974,47550,47262,39870,39326,39054,35742,35214,48030,34950,47502,47238,39822,39302,39042,35718,35202,48006,47490,53438,41852,41276,54206,53662,53390,44924,42812,41756,41228,55198,54158,53638,53378,44828,42764,41732,45246,37310,37022,46014,45470,45198,38846,37790,37262,36998,47006,45966,45446,45186,38798,37766,37250,41406,41118,42942,41886,41358,41094,44958,42894,41862,41346,54520,62782,43248,59964,54328,62734,43056,59916,54280,62722,56060,51836,46328,60734,38008,58654,55868,51740,46136,60686,37912,58630,55820,51716,46088,60674,52606,47868,50494,39548,56638,35388,52510,47676,50446,39452,56590,35340,52486,47628,50434,39428,56578,40318,36158,48446,34078,40222,36110,48398,34054,40198,36098,48386,59774,55036,53884,44280,60222,42104,59678,54844,53788,44088,60174,42008,59654,54796,53764,37628,55678,52094,46844,51518,45692,38524,37436,55582,51998,46652,51470,45596,38428,37388,55558,51974,46604,51458,45572,35198,47486,39806,39230,35646,35102,47934,47390,39710,39182,35598,35078,47886,47366,39686,39170,41724,54142,53566,44796],c=[48732,49518,34524,49446,34380,40668,50982,40524,57126,33484,33348,36556,49954,36420,48844,53026,48708,49506,34500,51042,40644,57186,33070,34606,40750,33646,33574,36718,36646,49006,33126,33058,34662,34594,40806,40738,33634,36706,48994,41696,59576,64046,54128,62684,53552,62540,44768,60344,64238,42592,59800,64102,41504,59528,64034,55088,62924,54032,62660,44576,60296,64226,37232,58460,55480,63022,51640,62062,45936,51352,61990,45360,60492,38768,58844,37680,58572,37136,58436,55432,63010,52120,62182,46896,51592,62050,45840,60612,38672,58820,56200,63202,35e3,57902,52316,47288,60974,50396,39352,50252,39064,58918,56396,35768,58094,35224,57958,48056,34952,57890,47512,52292,47240,60962,50636,39832,50372,39304,58978,56516,35720,58082,52676,48008,61154,33884,50734,40028,56878,49774,36060,49702,35916,48348,52774,48204,34268,33996,40412,33860,40140,50722,40004,56866,49894,36300,49762,36036,48588,52834,48324,34244,50914,40388,57058,33326,36398,34414,34342,40558,40486,33518,33382,36590,33314,36454,48878,36386,48742,34534,34402,40678,40546,33506,36578,48866,41328,59484,53688,62574,53400,62502,42864,59868,41776,59596,41232,59460,55224,62958,54168,62694,53640,62562,44848,60364,42768,59844,55176,62946,37048,58414,55388,51420,45496,51276,45208,60454,37816,58606,37272,58470,37e3,58402,55364,52188,47032,51660,45976,51396,45448,60514,38808,58854,37768,58594,55748,52164,46984,60898,34908,52270,47196,50286,39132,50214,38988,56358,35292,35020,47580,34884,47308,52258,47172,50670,39900,50406,39372,50274,39108,56418,35788,35268,48076,52450,47556,50658,39876,56802,33838,39982,35950,35878,48238,34030,33894,40174,33826,40038,39970,36334,36070,48622,35938,48358,48226,34278,34018,40422,40162,36322,48610,41144,59438,53468,53324,41912,59630,41368,59494,41096,59426,54236,53708,53444,44984,60398,42904,59878,41864,59618,55244,54212,36956,55342,51310,45276,51238,45132,37340,37068,36932,55330,51694,46044,51430,45516,51298,45252,38876,37836,37316,55522,52198,47052,51682,46020,34862,39022,38950,35054,34918,47342,34850,47206,39406,39142,39010,35822,35302,48110,35042,47590,47330,39910,39394,41052,53358,53286,41436,41164,41028,53742,53478,53346,42972,41932,41412,55278,54246,53730,36910,45166,37102,36966,36898,45550,45286,45154,37870,37350,37090,47086,46054,45538,43456,60016,64156,54368,62744,64838,43072,59920,64132,60792,64350,38112,58680,63822,55920,63132,51760,62092,46176,60696,64326,37920,58632,63810,55824,63108,39664,59068,56696,63326,35440,58012,52536,62286,47728,61084,50456,61766,39472,59020,56600,63302,35344,57988,52488,62274,47632,61060,36216,58206,52924,48504,61278,34104,57678,50844,40248,59214,56988,49804,36120,58182,52876,48408,61254,34056,57666,50820,40200,59202,56964,34492,51038,40636,57182,33436,49998,36508,53070,48796,49478,34444,51014,40588,57158,33412,49986,36484,53058,48772,33630,36702,48990,33102,34638,40782,33606,36678,48966,33090,34626,40770,54e3,62652,44512,60280,64222,42208,59704,64078,54896,62876,53808,62604,44128,60184,64198,42016,59656,64066,54800,62852,51576,62046,45808,60604,38640,58812,37488,58524,55608,63054,52024,62158,46704,51480,62022,45616,60556,38448,58764,37392,58500,55560,63042,51976,62146,46608,60804,50364,39288,58974,56508,35704,58078,35128,57934,47992,52380,47416,61006,50588,39736,50316,39192,58950,56460,35608,58054,35080,57922,47896,52356,47368,60994,50564,39688,59074,56708,49758,36028,52830,48316,34236,33948,40380,50766,40092,56910,49870,36252,49734,35980,48540,52806,48268,34188,33924,40332,50754,40068,56898,49858,36228,52930,48516,34398,40542,33502,33358,36574,36430,48862,48718,34510,34374,40654,40518,33478,33346,36550,36418,48838,48706,34498,40642,53624,62558,42736,59836,41584,59548,55160,62942,54072,62670,53528,62534,44656,60316,42544,59788,41488,59524,55064,62918,54024,62658,44560,60292,51388,45432,60510,37752,58590,37176,58446,55452,52156,46968,51612,45880,51340,45336,60486,38712,58830,37656,58566,37128,58434,55428,52108,46872,51588,45832,60610,38664,58818,56196,50270,39100,56414,35260,34972,47548,52302,47260,50654,39868,50382,39324,50246,39052,56390,35740,35212,48028,34948,47500,52290,47236,50630,39820,50370,39300,56514,35716,52674,48004,35934,48222,34014,33870,40158,40014,36318,36046,48606,35910,48334,48198,34254,33990,40398,33858,40134,40002,36294,36034,48582,48322,34242,40386,53436,41848,59614,41272,59470,54204,53660,53388,44920,60382,42808,59854,41752,59590,41224,59458,55196,54156,53636,44824,60358,42760,59842,51294,45244,37308,37020,55374,51678,46012,51406,45468,51270,45196,38844,37788,37260,36996,55362,52174,47004,51654,45964,51394,45444,38796,37764,55746,39006,35038,34894,47326,47182,39390,39118,38982,35806,35278,48094,35014,47566,34882,47302,47170,39886,39366,39106,35782,35266,48070,47554,53342,41404,41116,53726,53454,53318,42940,41884,41356,41092,55262,54222,53702,53442,44956,42892,41860,45150,37086,36942,45534,45262,45126,37854,37326,37062,36930,47070,46030,45510,45250,38862,37830,37314,41182,41038,41950,41422,41158,41026,45022,42958,41926,41410,54512,62780,43232,59960,64142,54320,62732,43040,59912,64130,56056,63166,51832,62110,46320,60732,38e3,58652,55864,63118,51736,62086,46128,60684,37904,58628,55816,63106,52604,47864,61118,50492,39544,59038,56636,35384,57998,52508,47672,61070,50444,39448,59014,56588,35336,57986,52484,47624,61058,50878,40316,57022,49822,36156,52894,48444,34076,50830,40220,56974,49798,36108,52870,48396,34052,50818,40196,56962,36542,48830,34462,40606,33422,36494,48782,34438,40582,33410,36482,48770,59772,55032,62910,53880,62622,44272,60220,42096,59676,54840,62862,53784,62598,44080,60172,42e3,59652,54792,62850,37624,58558,55676,52092,46840,51516,45688,60574,38520,58782,37432,58510,55580,51996,46648,51468,45592,60550,38424,58758,37384,58498,55556,51972,46600,60802,35196,52414,47484,50622,39804,50334,39228,56478,35644,35100,47932,52366,47388,50574,39708,50310,39180,56454,35596,35076,47884,52354,47364,50562,39684,56706,33982,40126,36286,35998,48574,48286,34206,33934,40350,40078,36238,35974,48526,48262,34182,33922,40326,40066,36226,48514,41720,59582,54140,53564,44792,60350,42616,59806,41528,59534,55100,54044,53516,44600,60302,42520,59782,41480,59522,55052,54020,37244,55486,51646,45948,51358,45372,38780,37692,37148,55438,52126,46908,51598,45852,51334,45324,38684,37644,37124,55426,52102,46860,51586,45828,35006,47294,39358,39070,35774,35230,48062,34958,47518,47246,39838,39310,39046,35726,35206,48014,34946,47494,47234,39814,39298,41340,53694,53406,42876,41788,41244,55230,54174,53646,53382,44860,42780,41740,41220,55182,54150,53634,37054,45502,45214,37822,37278,37006,47038,45982,45454,45190,38814,37774,37254,36994,46990,45958,45442,41150,41918,41374,41102,44990,42910,41870,41350,41090,43504,60028,54392,62750,43120,59932,54296,62726,43024,59908,60798,38136,58686,55932,51772,46200,60702,37944,58638,55836,51724,46104,60678,37896,58626,55812,39676,56702,35452,52542,47740,50462,39484,56606,35356,52494,47644,50438,39436,56582,35332,52482,47620,36222,48510,34110,40254,36126,48414,34062,40206,36102,48390,34050,40194,54012,44536,60286,42232,59710,54908,53820,44152,60190,42040,59662,54812,53772,44056,60166,41992,59650,51582,45820,38652,37500,55614,52030,46716,51486,45628,38460,37404,55566,51982,46620,51462,45580,38412,37380,55554,39294,35710,35134,47998,47422,58528,63784,55616,63056,64916,52032,62160,60832,64360,35136,57936,52384,62248,47424,61008,64404,50592,61800,39744,59088,63924,56736,63336,64986,33952,57640,50768,61844,40096,59176,63946,56912,63380,49872,36256,58216,52944,62388,48544,61288,64474,33360,49960,36432,58260,53032,62410,48720,61332,49512,34512,57780,51048,61914,40656,59316,57192,63450,33064,49556,34600,57802,51092,40744,59338,33640,50100,36712,58330,53172,49e3,61402,59552,64040,54080,62672,64820,60320,64232,37184,58448,63764,55456,63016,64906,51616,62056,45888,60624,64308,38720,58832,63860,56224,63208,64954,34976,57896,52304,62228,47264,60968,64394,50384,61748,39328,58984,63898,56528,63284,35744,58088,52688,62324,48032,61160,64442,33872,57620,50728,61834,40016,59156,56872,63370,49768,36048,58164,52840,62362,48336,61236,34256,57716,50920,61882,40400,59252,57064,63418,33320,49940,36392,58250,53012,49460,34408,57754,50996,40552,59290,57140,33512,50036,36584,58298,53108,48872,61370,33044,49546,34580,51082,33588,50074,36660,53146,33140,49594,34676,51130,40820,57274,41280,59472,64020,53664,62568,64794,42816,59856,64116,55200,62952,64890,37024,58408,63754,55376,62996,51408,62004,45472,60520,64282,37792,58600,63802,55760,63092,52176,62196,47008,60904,64378,34896,57876,52264,62218,47184,60948,50280,61722,39120,58932,56424,63258,35280,57972,52456,62266,47568,61044,50664,61818,39888,59124,56808,63354,33832,57610,50708,39976,59146,49716,35944,58138,52788,48232,61210,34024,57658,50804,40168,59194,56948,49908,36328,58234,52980,48616,61306,33300,49930,36372,49434,34356,50970,40500,33396,49978,36468,53050,48756,49530,34548,51066,40692,57210,33034,34570,33562,36634,33082,34618,40762,33658,36730,49018,41120,59432,64010,53456,62516,41888,59624,64058,54224,62708,44960,60392,64250,36944,58388,55336,62986,51304,61978,45264,60468,37328,58484,55528,63034,51688,62074,46032,60660,38864,58868,56296,63226,34856,57866,52244,50228,39016,58906,56372,35048,57914,52340,47336,60986,50420,39400,59002,56564,35816,58106,52724,48104,61178,33812,50698,49690,35892,52762,33908,50746,40052,56890,49786,36084,52858,48372,34292,50938,40436,57082,33290,34330,33338,36410,34426,40570,33530,36602,48890,41040,59412,53352,62490,41424,59508,53736,62586,42960,59892,55272,62970,36904,58378,51252,45160,60442,37096,58426,55412,51444,45544,60538,37864,58618,55796,52212,47080,60922,34836,50202,38964,34932,52282,47220,50298,39156,56442,35316,52474,47604,50682,39924,56826,33802,35866,33850,39994,35962,48250,34042,40186,36346,48634,59968,64144,60768,64344,58656,63816,55872,63120,64932,39616,59056,63916,56672,63320,64982,35392,58e3,52512,62280,47680,61072,64420,36192,58200,52912,62380,48480,61272,64470,34080,57672,50832,61860,40224,59208,63954,56976,63396,34480,57772,51032,61910,40624,59308,57176,63446,33424,49992,36496,58276,53064,62418,48784,61348,33624,50092,36696,58326,53164,48984,61398,33096,49572,34632,57810,51108,40776,59346,57252,53952,62640,64812,60256,64216,59680,64072,54848,62864,64868,51552,62040,45760,60592,64300,38592,58800,63852,37440,58512,63780,55584,63048,64914,52e3,62152,46656,60816,64356,50352,61740,39264,58968,63894,56496,63276,35680,58072,35104,57928,47968,52368,62244,47392,61e3,64402,50576,61796,39712,59080,63922,56720,63332,49752,36016,58156,52824,62358,48304,61228,34224,57708,33936,57636,40368,50760,61842,40080,59172,56904,63378,49864,36240,58212,52936,62386,48528,61284,49452,34392,57750,50988,40536,59286,57132,33496,33352,36568,49956,36424,58258,48856,53028,48712,61330,49508,34504,57778,51044,40648,59314,57188,33580,50070,36652,53142,33132,33060,34668,49554,34596,40812,51090,40740,33636,50098,36708,53170,48996,53600,62552,64790,42688,59824,64108,41536,59536,64036,55136,62936,64886,54048,62664,64818,44608,60304,64228,51376,61996,45408,60504,64278,37728,58584,63798,37152,58440,63762,55440,63012,52144,62188,46944,51600,62052,45856,60616,64306,38688,58824,63858,56208,63204,50264,61718,39088,58924,56408,63254,35248,57964,34960,57892,47536,52296,62226,47248,60964,50648,61814,39856,50376,61746,39312,58980,56520,63282,35728,58084,52680,62322,48016,61156,49708,35928,58134,52780,48216,61206,34008,57654,33864,57618,40152,50724,40008,59154,56868,49900,36312,49764,36040,58162,48600,52836,48328,61234,34248,57714,50916,40392,59250,57060,49430,34348,50966,40492,33388,33316,36460,49938,36388,48748,53010,49526,34540,49458,34404,40684,50994,40548,57138,33508,50034,36580,53106,48868,33558,36630,33078,33042,34614,34578,40758,33654,33586,36726,36658,49014,33138,34674,40818,53424,62508,41824,59608,64054,41248,59464,64018,54192,62700,53648,62564,44896,60376,64246,42784,59848,64114,55184,62948,51288,61974,45232,60460,37296,58476,37008,58404,55368,62994,51672,62070,46e3,51400,62002,45456,60516,38832,58860,37776,58596,55752,63090,52168,62194,46992,60900,50220,39e3,58902,56364,35032,57910,34888,57874,47320,52260,47176,60946,50412,39384,50276,39112,58930,56420,35800,58102,35272,57970,48088,52452,47560,61042,50660,39880,59122,56804,49686,35884,52758,33900,33828,40044,50706,39972,49782,36076,49714,35940,48364,52786,48228,34284,34020,40428,50802,40164,56946,49906,36324,52978,48612,34326,33334,33298,36406,36370,34422,34354,40566,40498,33526,33394,36598,36466,48886,48754,34546,40690,53336,62486,41392,59500,41104,59428,53720,62582,53448,62514,42928,59884,41872,59620,55256,62966,54216,62706,44944,60388,51244,45144,60438,37080,58422,36936,58386,55332,51436,45528,51300,45256,60466,37848,58614,37320,58482,55524,52204,47064,51684,46024,60658,38856,58866,56292,50198,38956,34924,34852,47212,52242,50294,39148,50226,39012,56370,35308,35044,47596,52338,47332,50678,39916,50418,39396,56562,35812,52722,48100,35862,33846,33810,39990,35958,35890,48246,34038,33906,40182,40050,36342,36082,48630,48370,34290,40434,53292,41176,59446,41032,59410,53484,53348,41944,59638,41416,59506,54252,53732,45016,60406,42952,59890,51222,36972,36900,51318,45292,51250,45156,37356,37092,55410,51702,46060,51442,45540,38892,37860,55794,34870,34834,39030,38962,35062,34930,47350,47218,39414,39154,35830,35314,48118,47602,54464,62768,64844,59936,64136,56032,63160,64942,51808,62104,46272,60720,64332,37952,58640,63812,55840,63112,64930,52592,62300,47840,61112,64430,50480,61772,39520,59032,63910,56624,63308,35360,57992,52496,62276,47648,61064,64418,50872,61870,40304,59228,57016,63406,49816,36144,58188,52888,62374,48432,61260,34064,57668,50824,61858,40208,59204,56968,63394,50012,36536,58286,53084,48824,61358,49484,34456,57766,51020,40600,59302,57164,33416,49988,36488,58274,53060,48776,61346,49582,34652,51118,40796,57262,33612,50086,36684,53158,48972,33092,49570,34628,51106,40772,57250,59760,64092,55008,62904,64878,53856,62616,64806,44224,60208,64204,42048,59664,64068,54816,62856,64866,37600,58552,63790,55664,63068,52080,62172,46816,51504,62028,45664,60568,64294,38496,58776,63846,37408,58504,63778,55568,63044,51984,62148,46624,60808,64354,35184,57948,52408,62254,47472,61020,50616,61806,39792,50328,61734,39216,58956,56472,63270,35632,58060,35088,57924,47920,52360,62242,47376,60996,50568,61794,39696,59076,56712,63330,33976,57646,50780,40120,59182,56924,49884,36280,49740,35992,58150,48568,52812,48280,61222,34200,57702,33928,57634,40344,50756,40072,59170,56900,49860,36232,58210,52932,48520,61282,33372,49966,36444,53038],s=[[[20,16,38]],[[1,9,31],[9,31,26],[31,26,2],[26,2,12]],[[2,12,17],[12,17,23],[17,23,37],[23,37,18]],[[37,18,22],[18,22,6],[22,6,27],[6,27,44]],[[27,44,15],[44,15,43],[15,43,39],[43,39,11]],[[39,11,13],[11,13,5],[13,5,41],[5,41,33]],[[41,33,36],[33,36,8],[36,8,4],[8,4,32]],[[4,32,3],[32,3,19],[3,19,40],[19,40,25]],[[40,25,29],[25,29,10],[29,10,24],[10,24,30]],[[20,16,38],[0,0,0],[0,0,0],[0,0,0]]],f=[[1,0,0,1],[0,1,0,1],[1,1,0,0],[0,0,1,1],[1,0,1,0],[0,1,1,0],[1,1,1,1],[0,0,0,0]],l=["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","-","."," ","$","/","+","%","\u2000","\u2001",i.default.FNC1,i.default.FNC2,i.default.FNC3,"\u2005"],e.default={defaultConfig:u={showLabel:!0,grouping:!(h=["\u2000 ","\u2000A","\u2000B","\u2000C","\u2000D","\u2000E","\u2000F","\u2000G","\u2000H","\u2000I","\u2000J","\u2000K","\u2000L","\u2000M","\u2000N","\u2000O","\u2000P","\u2000Q","\u2000R","\u2000S","\u2000T","\u2000U","\u2000V","\u2000W","\u2000X","\u2000Y","\u2000Z","\u20001","\u20002","\u20003","\u20004","\u20005"," ","\u20006","\u20007","\u20008","$","%","\u20009","\u20000","\u2000-","\u2000.","\u2000$","+","\u2000/","-",".","/","0","1","2","3","4","5","6","7","8","9","\u2000+","\u20011","\u20012","\u20013","\u20014","\u20015","\u20016","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","\u20017","\u20018","\u20019","\u20010","\u2001-","\u2001.","\u2001A","\u2001B","\u2001C","\u2001D","\u2001E","\u2001F","\u2001G","\u2001H","\u2001I","\u2001J","\u2001K","\u2001L","\u2001M","\u2001N","\u2001O","\u2001P","\u2001Q","\u2001R","\u2001S","\u2001T","\u2001U","\u2001V","\u2001W","\u2001X","\u2001Y","\u2001Z","\u2001$","\u2001/","\u2001+","\u2001%","\u2001 "]),groupNo:0,quietZoneStart:10,quietZoneStop:1,labelPosition:"bottom",height:60,quietZone:{top:0,right:1,bottom:0,left:10}},isNumericOnly:y,getCharValue:p,CODE_NS:v=48,getWeight:g,getParityPattern:m,START_PATTERN:d="10",STOP_PATTERN:w="1111",getGroupInfo:C,getTextGroup:A}},function(t,e,n){"use strict";var r,i,i,o,u,a,c,s,f,c,l;function h(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function v(t){return t&&t.__esModule?t:{default:t}}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function w(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function b(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function y(t){var t,e,n,r,i,e,r,o,r;return d(this,y),n=(e=(t=w(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,t,s.default.defaultConfig))).config).text,r=e.checkDigit,e=(i=e.fullASCII)?s.default.getFullASCIIChar(n):n,r?(r=t.checksum(e),o=t.checksum(e+r),t.text=s.default.START_STOP_CHARACTERS+e+r+o+s.default.START_STOP_CHARACTERS):t.text=s.default.START_STOP_CHARACTERS+e+s.default.START_STOP_CHARACTERS,t.label=n,r=t.calculateData(),t.adjustDesiredSize(r),t.convertToShape(r),t}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&h(t.prototype,e),n&&h(t,n),t},i=n(4),i=v(i),u=v(o=n(2)),a=n(0),c=n(36),s=v(c),f=n(1),b(y,l=i.default),r(y,[{key:"validate",value:function t(){var e,n,r,i,e=this.config,n=e.text,r,i;if(!e.fullASCII&&!/^[0-9A-Z\-\.\ \$\/\+\%]+$/.test(n))throw new f.InvalidTextException(n)}},{key:"encode",value:function t(e){var n="";return(0,a.str2Array)(e).forEach(function(t,e){(0,a.isEven)(e)?n+=(0,a.strRepeat)("1",+t):n+=(0,a.strRepeat)("0",+t)}),n}},{key:"calculateData",value:function t(){var e,n,r,e=this,n=this.text,r="";return(0,a.sliceString)(n,1,function(t){r+=e.encode(s.default.getCode93Code(t))}),r+=s.default.TERMINATION}},{key:"checksum",value:function t(e){var n,e,n=1,e=(0,a.str2Array)(e).reduceRight(function(t,e){var e=s.default.getCode93Value(e);return t+=(n=20<n?1:n)*e,n++,t},0);return s.default.getCharByValue(e%47)}}]),c=y,e.default=c,u.default.registerEncoder("Code93",c)},function(t,e,n){"use strict";var r,i,o,u,a,c,s,f;function l(t){var e=o.indexOf(t);if(-1===e)throw new r.InvalidCharException(t);return u[e]}function h(t){var e=o.indexOf(t);if(-1===e)throw new r.InvalidCharException(t);return e}function v(t){return o[t]}function d(e){var n="";return(0,i.sliceString)(e,1,function(t){var t=a[t.charCodeAt(0)];if(!t)throw new r.InvalidTextException(e);n+=t}),n}Object.defineProperty(e,"__esModule",{value:!0}),r=n(1),i=n(0),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","-","."," ","$","/","+","%","[","]","{","}","*"],e.default={getCode93Code:l,START_STOP_CHARACTERS:s="*",defaultConfig:c={height:60,showLabel:!0,checkDigit:!(a=["]U","[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","]A","]B","]C","]D","]E"," ","{A","{B","{C","{D","{E","{F","{G","{H","{I","{J","{K","{L","{M","{N","{O","0","1","2","3","4","5","6","7","8","9","{Z","]F","]G","]H","]I","]J","]V","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","]K","]L","]M","]N","]O","]W","}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","]P","]Q","]R","]S","]T"]),fullASCII:!(u=["131112","111213","111312","111411","121113","121212","121311","111114","131211","141111","211113","211212","211311","221112","221211","231111","112113","112212","112311","122112","132111","111123","111222","111321","121122","131121","212112","212211","211122","211221","221121","222111","112122","112221","122121","123111","121131","311112","311211","321111","112131","113121","211131","121221","312111","311121","122211","111141"]),quietZone:{top:0,right:10,bottom:0,left:10},labelPosition:"bottom"},TERMINATION:f="1",getCode93Value:h,getCharByValue:v,getFullASCIIChar:d}},function(t,e,n){"use strict";var r,i,i,o,u,a,l,a,h,a,v,d,c,a,s;function f(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function w(t){return t&&t.__esModule?t:{default:t}}function b(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function p(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function g(t){var t,e,n,r,i,o,u,a,c,s,f,e;switch(b(this,g),n=(e=(t=y(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,t,l.default.defaultConfig))).config).text,r=e.eccMode,i=e.ecc200SymbolSize,o=e.ecc200EncodingMode,u=e.structuredAppend,a=e.structureNumber,c=e.fileIdentifier,s=e.ecc000_140SymbolSize,a=+a,c=+c,f=void 0,r){case"ECC200":f=new h.default(n,{ecc200SymbolSize:i,ecc200EncodingMode:o,structuredAppend:u,structureNumber:a,fileIdentifier:c});break;case"ECC000":case"ECC050":case"ECC080":case"ECC100":case"ECC140":f=new v.default(n,{ecc000_140SymbolSize:s,structuredAppend:u,structureNumber:a,fileIdentifier:c,eccMode:r});break;default:throw new d.BadArgumentsException(r)}return e=f.getMatrix(),t.adjustDesiredSize(e),t.convertToShape(e),t}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&f(t.prototype,e),n&&f(t,n),t},i=n(7),i=w(i),u=w(o=n(2)),a=n(38),l=w(a),a=n(39),h=w(a),a=n(42),v=w(a),d=n(1),c=n(0),p(g,s=i.default),r(g,[{key:"validate",value:function t(){var e,n,r,i,e,o,e=this.config,n=e.text,r=e.eccMode,i=e.structureNumber,e=e.fileIdentifier,o=void 0;if(!(o="ECC200"===r?/^[\x00-\xFF\u2000\u2004\u2005]+$/:/^[\x00-\xFF]+$/).test(n))throw new d.InvalidTextException(n);if(!(0,c.isNumberLike)(i))throw new d.BadArgumentsException({structureNumber:i});if(!(0,c.isNumberLike)(e))throw new d.BadArgumentsException({fileIdentifier:e})}}]),a=g,e.default=a,u.default.registerEncoder("DataMatrix",a)},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.default={defaultConfig:{eccMode:"ECC200",ecc200SymbolSize:"squareAuto",ecc200EncodingMode:"auto",ecc000_140SymbolSize:"auto",structuredAppend:!1,structureNumber:0,fileIdentifier:0,quietZone:{top:2,left:2,right:2,bottom:2}}}},function(t,e,n){"use strict";var s,r,i,O,i,l,m,i,C,o,u;function a(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function c(t){return t&&t.__esModule?t:{default:t}}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function k(t){return t%256}function E(t){return Math.ceil(t-1e-5)}function h(t,e){f(this,h),this.text=t,this.m_symbol=(0,o.str2Array)(t).map(function(t){return t.charCodeAt(0)}),this.symbolSize=e.ecc200SymbolSize,this.encodingMode=e.ecc200EncodingMode,this.structuredAppend=e.structuredAppend,this.structureNumber=e.structureNumber,this.fileIdentifier=e.fileIdentifier,this.symbolInfo=O.default.getSymbolInfo("square144"),this.m_code=[]}Object.defineProperty(e,"__esModule",{value:!0}),s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=function(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t},i=n(8),O=c(i),i=n(40),l=c(i),m=n(1),i=n(41),C=c(i),o=n(0),r(h,[{key:"preEncode",value:function t(e,n){var r,i,r,r=this.m_symbol,i=this.m_code,r=r[0];return r!=O.default.CONSTANTS.Macro05Input&&r!=O.default.CONSTANTS.Macro06Input||(i[e++]=r==O.default.CONSTANTS.Macro05Input?O.default.CONSTANTS.Macro05:O.default.CONSTANTS.Macro06,n++),{c_pos:e,s_pos:n}}},{key:"checkValue",value:function t(e){var n,r,i,n=this.encodingMode,r=this.m_symbol;if("X12"==n||"EDIFACT"==n)for(i=e;i<r.length;++i)if(O.default.getTripletCharValue(n,r[i])==O.default.CONSTANTS.InvalidTripletValue)return!1;return!0}},{key:"getEncodingLength",value:function t(e,n,r,i){var o,u,o=this.m_symbol;if(n<0)return-1;switch(u=0,e){case"ASCII":u=n;break;case"C40":case"Text":u=2*~~((n+2)/3)+2;break;case"X12":u=2*~~((n+2)/3)+2,(n%3==1||n%3==2&&O.default.isDigit(o[r+i-2])&&O.default.isDigit(o[r+i-1]))&&--u;break;case"EDIFACT":u=3*~~(++n/4)+n%4+1;break;case"Base256":u=n+1+(n>O.default.CONSTANTS.Base256SmallBlockSize?2:1)}return u}},{key:"getMaxProperLength",value:function t(e,n){for(var r,i,o,u,a,r,c,r=this.m_symbol,i=this.encodingMode,o=e+1,u=r.length,a=~~((o+u)/2),r=0,c=0;o<u;)(c=this.getEncodingLength(i,this.getCodeWordLength(i,e,(a=~~((o+u)/2))-e),e,a-e))<0||n<c?u=a-1:o=a+1;return e<o&&(r=a<o?(c=this.getEncodingLength(i,this.getCodeWordLength(i,e,o-e),e,o-e))<0||n<c?a-e:o-e:(a=Math.min(a,o),(c=this.getEncodingLength(i,this.getCodeWordLength(i,e,a-e),e,a-e))<0||n<c?a-e-1:a-e)),Math.max(0,r)}},{key:"getCodeWordLength",value:function t(e,n,r){for(var i,o,u,a,i=this.m_symbol,o=0,u=n;u<n+r;++u){switch(a=i[u],e){case"ASCII":o+=a>O.default.ASCIIMax&&a!=O.default.CONSTANTS.FNC1Input?2:1,u<n+r-1&&O.default.isDigit(a)&&O.default.isDigit(i[u+1])&&++u;break;case"C40":case"Text":a==O.default.CONSTANTS.FNC1Input?a=O.default.CONSTANTS.TripletFNC1:a>O.default.ASCIIMax&&(o+=2,a-=128),o+=0==O.default.getTripletCharSetChannel(e,a)?1:2;break;case"X12":O.default.getX12Value(a)==O.default.CONSTANTS.InvalidTripletValue?o=-1:o+=1;break;case"EDIFACT":O.default.getEDIFACTValue(a)==O.default.CONSTANTS.InvalidTripletValue?o=-1:o+=1;break;case"Base256":o+=1}if(o<0)return o}return o}},{key:"getCodeLength",value:function t(e){return this.getEncodingLength(e.charSet,this.getCodeWordLength(e.charSet,e.start,e.length),e.start,e.length)}},{key:"getEncodingUnitsInfomative",value:function t(e,n,r){for(var i,o,u,a,c,s,f,l,h,v,d,w,b,y,i=this.m_symbol,o=[],a=r=0,c=e,s=!(u={charSet:"ASCII",start:e,length:0,codeWords:0,encodingLength:0}),f=i.length;c<f;){switch(s=!1,u.charSet){case"ASCII":for(l=0;c+l<i.length-1&&a+~~(l/2)<n&&O.default.isDigit(i[c+l])&&O.default.isDigit(i[c+l+1]);)l+=2;if(0<l){if(u.codeWords+=l>>1,c+=l,n<=a+~~(l/2))break;continue}break;case"C40":case"Text":case"X12":for(;i[c]>O.default.ASCIIMax&&(u.codeWords+=2),0<O.default.getTripletCharSetChannel(u.charSet,i[c])&&++u.codeWords,++u.codeWords,++c,u.codeWords%3!=0&&c<f;);break;case"EDIFACT":for(;++u.codeWords,++c,0!=(3&u.codeWords)&&c<f;);break;case"Base256":++u.codeWords,++c}for(h=0,d=v=n-(a+this.getEncodingLength(u.charSet,u.codeWords,u.start,c-u.start)),w=u.charSet;h=(b=this.lookAhead(u.charSet,c,d,h)).d_len,w=b.newCharset,0<--d&&this.getEncodingLength(w,this.getCodeWordLength(w,c,h),c,h)>v;);if(d<=0)break;if(u.charSet!=w&&(u.length=c-u.start,0<u.length&&(o.push(u),a+=this.getEncodingLength(u.charSet,u.codeWords,u.start,u.length)),u={charSet:w,start:c,length:0,codeWords:0,encodingLength:0},s=!0),y=n-1,"EDIFACT"==u.charSet&&--y,"Base256"==u.charSet&&++y,a+this.getEncodingLength(u.charSet,u.codeWords,u.start,u.length)>=y)break;s||"ASCII"!=u.charSet||(++u.codeWords,++c)}for(u.length=c-u.start,0<u.length&&(o.push(u),a+=this.getEncodingLength(u.charSet,u.codeWords,u.start,u.length)),u={charSet:"ASCII",start:c,length:0,codeWords:0,encodingLength:0};a<n&&c<i.length;){if(i[c]>O.default.ASCIIMax&&i[c]!=O.default.CONSTANTS.FNC1Input){if(!(a<n-1))break;++a}++a,++c}return c>u.start&&(u.length=c-u.start,o.push(u)),{s_taken:r=c-e,units:O.default.mergeUnits(o)}}},{key:"getEncodingUnits",value:function t(e,n){var r,i,o,u,a,c,o,i,r=this,i=this.encodingMode,o=this.m_symbol,u=void 0,a=0,c=0;return e<o.length&&("auto"!==i?("C40"!==i&&"Text"!=i&&"X12"!=i||n++,(o={charSet:i,start:e,length:c=this.getMaxProperLength(e,n),codeWords:0,encodingLength:0}).codeWords=this.getCodeWordLength(o.charSet,o.start,o.length),o.encodingLength=this.getEncodingLength(o.charSet,o.codeWords,o.start,o.length),"X12"==o.charSet&&o.encodingLength==n&&o.codeWords%3==2&&(--c,--o.length,--o.codeWords,--o.encodingLength),u=[o]):(i=this.getEncodingUnitsInfomative(e,n,c),u=i.units,c=i.s_taken),u.forEach(function(t,e){a+=r.getCodeLength(t),e===u.length-1&&("C40"===t.charSet||"Text"===t.charSet||"X12"===t.charSet&&1==(1&t.codeWords))&&a--})),{c_length:a,s_taken:c,units:u}}},{key:"encodeStructureHeader",value:function t(e,n,r){var i,o,o,i=this.m_code,o=this.structureNumber;return i[e++]=O.default.CONSTANTS.StructuredAppand,i[e++]=k(o<<4|16-n+1),o=this.generateFileIdentifier(n,r),i[e++]=k(o>>8),i[e++]=o%256,e}},{key:"generateFileIdentifier",value:function t(e,n){var r,i,o,u,r=this.m_symbol,i=this.fileIdentifier,o,u;return n%O.default.CONSTANTS.FileIdentifierMax+1<<8|(0==i?r.length%O.default.CONSTANTS.FileIdentifierMax+1:i)}},{key:"encode",value:function t(e,n){switch(e.charSet){case"ASCII":return this.encodeASCII(e.start,e.length,n);case"C40":return this.encodeC40(e.start,e.length,n);case"Text":return this.encodeText(e.start,e.length,n);case"X12":return this.encodeX12(e.start,e.length,n);case"EDIFACT":return this.encodeEDIFACT(e.start,e.length,n);case"Base256":return this.encodeBase256(e.start,e.length,n)}}},{key:"encodeASCII",value:function t(e,n,r){for(var i,o,u,a,c,c,i=this.m_code,o=this.m_symbol,u=e,a=e+n;u<a;u++)"FNC1"===(c=O.default.getCharType(o[u]))?(i.push(O.default.CONSTANTS.ASCIIFNC1),r++):"ExtendedASCII"===c?(i.push(O.default.CONSTANTS.ASCIIUpperShift),i.push(o[u]-O.default.ASCIIMax),r+=2):u+1<a&&"Numeric"===c&&"Numeric"===O.default.getCharType(o[u+1])?(c=10*(o[u]-48)+(o[u+1]-48)+130,i.push(c),r++,u++):(i.push(o[u]+1),r++);return r}},{key:"encodeTriplet",value:function t(e,n,r,i){var o,u,a,c,s,f,l,h,v,d,w,b,w,o=this.m_code,u=this.m_symbol,a=this.symbolInfo,c=0,s=0,f=null,l=[],h=n;switch(e){case"C40":o[i++]=O.default.CONSTANTS.LatchToC40;break;case"Text":o[i++]=O.default.CONSTANTS.LatchToText;break;case"X12":o[i++]=O.default.CONSTANTS.LatchToX12}for(;h<n+r;)f=O.default.getTripletEncodeValues(e,u[h++]),l=l.concat(f);for(;i<=a.symbolDataCapacity-2&&3<=l.length;){for(s=c=0;s<3;++s)c=(c*=40)+(0<l.length?l.shift():0);++c,o[i++]=c>>8,o[i++]=255&c}if(v=!0,0<l.length){if(d=a.symbolDataCapacity-i,w=n+r-l.length,b=l.length,0==d||3<l.length||2<=l.length&&d<2||"X12"===e&&this.getEncodingLength("ASCII",this.getCodeWordLength("ASCII",w,b),w,b)>(1==d?1:d-1))throw new m.TextTooLargeException;if(v=!1,2<=d)if("X12"==e)o[i++]=O.default.CONSTANTS.TripletUnlatch,i=this.encodeASCII(h-l.length,l.length,i);else{for(v=!0,c=s=0;s<3;++s)c=(c*=40)+(0<l.length?l.shift():0);o[i++]=++c>>8,o[i++]=255&c}else w=u[h-1],i=("X12"===e||w>O.default.ASCIIMax&&(o[i-2]=O.default.CONSTANTS.TripletUnlatch,--i),this.encodeASCII(h-1,1,i))}return v&&i<a.symbolDataCapacity&&(o[i++]=O.default.CONSTANTS.TripletUnlatch),i}},{key:"encodeC40",value:function t(e,n,r){return this.encodeTriplet("C40",e,n,r)}},{key:"encodeText",value:function t(e,n,r){return this.encodeTriplet("Text",e,n,r)}},{key:"encodeX12",value:function t(e,n,r){return this.encodeTriplet("X12",e,n,r)}},{key:"encodeEDIFACT",value:function t(e,n,r){var i,o,u,a,c,s,f,l,h,i=this.m_code,o=this.m_symbol,u=this.symbolInfo,a=this.text;for(i[r++]=O.default.CONSTANTS.LatchToEDIFACT,s=c=0,f=e,l=!1;f<e+n&&2<u.symbolDataCapacity-r;){for(s=c=0;c<4;){if(++c,h=0,f<e+n){if((h=O.default.getEDIFACTValue(o[f++]))==O.default.CONSTANTS.InvalidTripletValue)throw new m.InvalidTextException(a)}else{if(f!=e+n){--c;break}h=O.default.CONSTANTS.EDIFACTUnlatch,l=!0,++f}s=s<<6|h}switch(c){case 1:i[r++]=k(s<<2);break;case 2:i[r++]=k(s>>4),i[r++]=k(s<<4);break;case 3:i[r++]=k(s>>10),i[r++]=k(s>>2),i[r++]=k(s<<6);break;case 4:i[r++]=k(s>>16),i[r++]=k(s>>8),i[r++]=s%256}}return f<e+n?r=this.encodeASCII(f,o.length-f,r):!l&&r<u.symbolDataCapacity-2&&(i[r++]=O.default.CONSTANTS.EDIFACTUnlatch<<2),r}},{key:"encodeBase256",value:function t(e,n,r){var i,o,u,i=this.m_code,o=this.m_symbol;for(i[r++]=O.default.CONSTANTS.LatchToBase256,n>O.default.CONSTANTS.Base256SmallBlockSize&&(i[r++]=O.default.getRandomizedValue(O.default.CONSTANTS.Base256SmallBlockSize+n/O.default.CONSTANTS.Base256SmallBlockSize,r,O.default.CONSTANTS.Base256RandomBase)),i[r++]=O.default.getRandomizedValue(n%(O.default.CONSTANTS.Base256SmallBlockSize+1),r,O.default.CONSTANTS.Base256RandomBase),u=e;u<e+n;++u)i[r++]=O.default.getRandomizedValue(o[u],r,O.default.CONSTANTS.Base256RandomBase);return r}},{key:"padRight",value:function t(e){for(var n,r,i,n=this.m_code,r=this.symbolInfo,i=e;i<r.symbolDataCapacity;i++)n[i]=i==e?O.default.CONSTANTS.ASCIIPad:O.default.getRandomizedValue(O.default.CONSTANTS.ASCIIPad,i+1,O.default.CONSTANTS.PadRandomBase)}},{key:"lookAhead",value:function t(e,d,w,b){var y,p,g,m,C,k,A,n,r,i,o,u,a,c,y={ASCII:0,C40:1,Text:2,X12:3,EDIFACT:4,Base256:5},p=["ASCII","C40","Text","X12","EDIFACT","Base256"],g=this.m_symbol;b=0,e=y[e],m=!1,C=d,k=[0,1,1,1,1,1.25],A=y.C40,(k=e!=y.ASCII?k.map(function(t){return++t}):k)[e]=0,n=function t(){var n,r,i,e,o,u,a,c,s,f,l,h,v;if(++b,n=g[d],r=n==O.default.CONSTANTS.FNC1Input,i=n>O.default.ASCIIMax,k.forEach(function(t,e){switch(e){case y.ASCII:i&&!r?k[e]=E(k[e])+2:O.default.isDigit(n)?k[e]+=.5:k[e]+=1;break;case y.C40:case y.Text:k[e]+=r?4/3:i?8/3:0==O.default.getTripletCharSetChannel(p[e],n)?2/3:4/3;break;case y.X12:i?k[e]+=13/3:O.default.getX12Value(n)!=O.default.CONSTANTS.InvalidTripletValue?k[e]+=2/3:k[e]+=10/3;break;case y.EDIFACT:i?k[e]+=4.25:O.default.getEDIFACTValue(n)!=O.default.CONSTANTS.InvalidTripletValue?k[e]+=.75:k[e]+=3.25;break;case y.Base256:k[e]+=1}}),e=[y.ASCII,y.Base256,y.EDIFACT,y.Text,y.X12,y.C40],3<b)for(o=0;o<e.length;++o){for(u=!0,c=k[a=e[o]]+1,s=0;s<k.length;++s){switch(a){case y.ASCII:k[s]<c&&(u=!1);break;case y.Base256:(s==y.ASCII&&k[s]<c||k[s]<=c)&&(u=!1);break;case y.EDIFACT:case y.Text:case y.X12:k[s]<=c&&(u=!1);break;case y.C40:if(s!=y.X12&&k[s]<=c)u=!1;else if(--c,k[s]<c)u=!1;else if(k[s]==c){for(f=C;f<=d;){if((l=O.default.getX12Value(g[f++]))<3)return{v:p[y.X12]};if(l==O.default.CONSTANTS.InvalidTripletValue)break}return{v:p[y.C40]}}}if(!u)break}if(u){A=a;break}}for(++d,v=h=0;v<k.length;++v)E(k[v])<E(k[h])&&(h=v);if(d<g.length&&E(k[h])>=w)return m=!0,"break"};t:for(;d<g.length&&d-C<=O.default.CONSTANTS.MaxLookAheadOffset&&"break"!==(r=n());)if("object"===(void 0===r?"undefined":s(r)))return r.v;if(d==g.length||d-C>=O.default.CONSTANTS.MaxLookAheadOffset||m){for(o=i=0;o<k.length;++o)k[o]=E(k[o]),k[o]<k[i]&&(i=o);if(0==i||i==y.C40)A=i;else{for(u=!0,a=k[i],c=0;c<k.length;++c)if(c!=i&&k[c]<=a){u=!1;break}u&&(A=i)}}return{d_len:b,newCharset:p[A]}}},{key:"getMatrix",value:function t(){var e,n,r,i,o,u,a,c,s,f,l,h,v,d,w,b,y,p,b,v,n,i,n,g,v,e=this,n=this.text,r=this.m_symbol,i=this.symbolSize,o=this.structuredAppend,u=this.structureNumber,a=this.symbolInfo;if(r.length>3116*(o?16:1))throw new m.TextTooLargeException;if(h=l=f=s=c=0,"squareAuto"!==i&&"rectangularAuto"!==i?a=O.default.getSymbolInfo(i):"rectangularAuto"===i&&(a=O.default.getSymbolInfo("rectangular16x48")),this.symbolInfo=a,o||(c=(v=this.preEncode(c,s)).s_pos,s=v.c_pos),d=a.symbolDataCapacity,f=o?(d-=4,4):(d-=s,s),!this.checkValue(c))throw new m.InvalidTextException(n);for(w=void 0;l<(o?O.default.CONSTANTS.MaxStructures:1)&&c<r.length;l++)h^=r[c],y=(b=this.getEncodingUnits(c,d)).s_taken,p=b.c_length,b=b.units,c+=y,l==u&&(w=b,f+=p);if(null==w)throw new m.InvalidStructureNumberException;if(c<r.length)throw new m.TextTooLargeException;return"squareAuto"!==i&&"rectangularAuto"!==i||(a=O.default.getSuitableSymbolSize(i,f),this.symbolInfo=a),o&&(s=this.encodeStructureHeader(s,l,k(h^r[r.length-1]))),w.forEach(function(t){return s=e.encode(t,s)}),s<a.symbolDataCapacity&&this.padRight(s),v=this.eccProcess(),i=(n=O.default.getInfoOfRegions(a.regions)).rowOfRegion,n=n.colOfRegion,v=(g=new C.default(v,a.symbolRows-2*i,a.symbolColumns-2*n)).ECC200(),this.placeModules(v)}},{key:"eccProcess",value:function t(){var e,n,r,i,o,u,a,c,s,f,e=this.symbolInfo,n=this.m_code,r=e.symbolDataCapacity/e.interleavedBlocks,i=e.eccLength/e.interleavedBlocks;for(144==e.symbolRows&&++r,o=[],u=0;u<e.interleavedBlocks;++u){for(a=0,c=u;a<r&&c<e.symbolDataCapacity;++a,c+=e.interleavedBlocks)o[a]=n[c];for(s=(0,l.default)(o,0,a,i),c=u,f=0;f<s.length;++f,c+=e.interleavedBlocks)n[e.symbolDataCapacity+c]=s[f]}return n}},{key:"placeModules",value:function t(e){for(var n,r,i,o,u,a,c,n=this.symbolInfo,r=O.default.createModules(n.symbolRows,n.symbolColumns),i=O.default.getInfoOfRegions(n.regions),o=i.rowOfRegion,u=i.colOfRegion,a=0;a<o;a++)for(c=0;c<u;c++)O.default.setFinder(r,n,a,c),O.default.setRegionData(r,n,a,c,e);return r}}]),e.default=h},function(t,e,n){"use strict";var s,r,i,o,u,a,c,f,l,h;for(Object.defineProperty(e,"__esModule",{value:!0}),e.default=w,s=n(0),r=45,i=128,o=1,u=(0,s.fillArray)(new Array(256),0),a=(0,s.fillArray)(new Array(256),0),c=1,f=0;l=c%=256,u[f]=c,a[c]=f%256,c<<=1,0!=(l&i)&&(c^=45),++f<=255;);function v(t,e){return(t^e)%256}function d(t,e){return 0==t||0==e?0:u[(a[t]+a[e])%255]}function w(t,e,n,r){for(var i,o,u,a,c,i=(0,s.fillArray)(new Array(r),0),o=h[r],u=e;u<e+n;++u){for(a=v(i[r-1],t[u]),c=r-1;0<c;--c)i[c]=v(d(a,o[c]),i[c-1]);i[0]=d(o[0],a)}return i.reverse(),i}h=[null,null,null,null,null,[228,48,15,111,62],null,[23,68,144,134,240,92,254],null,null,[28,24,185,166,223,248,116,255,110,61],[175,138,205,12,194,168,39,245,60,97,120],[41,153,158,91,61,42,142,213,97,178,100,242],null,[156,97,192,252,95,9,157,119,138,45,18,186,83,185],null,null,null,[83,195,100,39,188,75,66,61,241,213,109,129,94,254,225,48,90,188],null,[15,195,244,9,233,71,168,2,188,160,153,145,253,79,108,82,27,174,186,172],null,null,null,[52,190,88,205,109,39,176,21,155,197,251,223,155,21,5,172,254,124,12,181,184,96,50,193],null,null,null,[211,231,43,97,71,96,103,174,37,151,170,53,75,34,249,121,17,138,110,213,141,136,120,151,233,168,93,255],null,null,null,null,null,null,null,[245,127,242,218,130,250,162,181,102,120,84,179,220,251,80,182,229,18,2,4,68,33,101,137,95,119,115,44,175,184,59,25,225,98,81,112],null,null,null,null,null,[77,193,137,31,19,38,22,153,247,105,122,2,245,133,242,8,175,95,100,9,167,105,214,111,57,121,21,1,253,57,54,101,248,202,69,50,150,177,226,5,9,5],null,null,null,null,null,[245,132,172,223,96,32,117,22,238,133,238,231,205,188,237,87,191,106,16,147,118,23,37,90,170,205,131,88,120,100,66,138,186,240,82,44,176,87,187,147,160,175,69,213,92,253,225,19],null,null,null,null,null,null,null,[175,9,223,238,12,17,220,208,100,29,175,170,230,192,215,235,150,159,36,223,38,200,132,54,228,146,218,234,117,203,29,232,144,238,22,150,201,117,62,207,164,13,137,245,127,67,247,28,155,43,203,107,233,53,143,46],null,null,null,null,null,[242,93,169,50,144,210,39,118,202,188,201,189,143,108,196,37,185,112,134,230,245,63,197,190,250,106,185,221,175,64,114,71,161,44,147,6,27,218,51,63,87,10,40,130,188,17,163,31,176,170,4,107,232,7,94,166,224,124,86,47,11,204],null,null,null,null,null,[220,228,173,89,251,149,159,56,89,33,147,244,154,36,73,127,213,136,248,180,234,197,158,177,68,122,93,213,15,160,227,236,66,139,153,185,202,167,179,25,220,232,96,210,231,136,223,239,181,241,59,52,172,25,49,232,211,189,64,54,108,153,132,63,96,103,82,186]]},function(t,e,n){"use strict";var r,n,i,o;function u(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function a(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e,n){c(this,s),this.nrow=e,this.ncol=n,this.data=t,this.matrix=i.default.createModules(e,n)}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t},n=n(8),i=a(n),r(s,[{key:"ECC200",value:function t(){var e,n,r,i,o,u,e=this.nrow,n=this.ncol,r=this.matrix,i=4,o=0,u=0;do{for(i==e&&0==o&&this.corner1(u++),i==e-2&&0==o&&n%4&&this.corner2(u++),i==e-2&&0==o&&n%8==4&&this.corner3(u++),i!=e+4||2!=o||n%8||this.corner4(u++);i<e&&0<=o&&null===r[i][o]&&this.utah(i,o,u++),o+=2,0<=(i-=2)&&o<n;);for(i+=1,o+=3;0<=i&&o<n&&null===r[i][o]&&this.utah(i,o,u++),o-=2,(i+=2)<e&&0<=o;);}while(o+=1,(i+=3)<e||o<n);return r[e-1][n-1]||(r[e-1][n-1]=r[e-2][n-2]=1,r[e-2][n-1]=r[e-1][n-2]=0),r}},{key:"module",value:function t(e,n,r,i){var o,u,a,c,s,o=this.nrow,u=this.ncol,a=this.matrix,c=this.data;e<0&&(e+=o,n+=4-(o+4)%8),n<0&&(n+=u,e+=4-(u+4)%8),a[e][n]=0!=(c[r]&(s=(1<<8-i)%256))?1:0}},{key:"utah",value:function t(e,n,r){this.module(e-2,n-2,r,1),this.module(e-2,n-1,r,2),this.module(e-1,n-2,r,3),this.module(e-1,n-1,r,4),this.module(e-1,n,r,5),this.module(e,n-2,r,6),this.module(e,n-1,r,7),this.module(e,n,r,8)}},{key:"corner1",value:function t(e){var n=this.nrow,r=this.ncol;this.module(n-1,0,e,1),this.module(n-1,1,e,2),this.module(n-1,2,e,3),this.module(0,r-2,e,4),this.module(0,r-1,e,5),this.module(1,r-1,e,6),this.module(2,r-1,e,7),this.module(3,r-1,e,8)}},{key:"corner2",value:function t(e){var n=this.nrow,r=this.ncol;this.module(n-3,0,e,1),this.module(n-2,0,e,2),this.module(n-1,0,e,3),this.module(0,r-4,e,4),this.module(0,r-3,e,5),this.module(0,r-2,e,6),this.module(0,r-1,e,7),this.module(1,r-1,e,8)}},{key:"corner3",value:function t(e){var n=this.nrow,r=this.ncol;this.module(n-3,0,e,1),this.module(n-2,0,e,2),this.module(n-1,0,e,3),this.module(0,r-2,e,4),this.module(0,r-1,e,5),this.module(1,r-1,e,6),this.module(2,r-1,e,7),this.module(3,r-1,e,8)}},{key:"corner4",value:function t(e){var n=this.nrow,r=this.ncol;this.module(n-1,0,e,1),this.module(n-1,r-1,e,2),this.module(0,r-3,e,3),this.module(0,r-2,e,4),this.module(0,r-1,e,5),this.module(1,r-3,e,6),this.module(1,r-2,e,7),this.module(1,r-1,e,8)}}]),e.default=s},function(t,e,n){"use strict";var r,i,v,f,o,i,l,u;function a(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function c(t){return t&&t.__esModule?t:{default:t}}function s(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){h(this,d),this.text=t,this.m_symbol=(0,o.str2Array)(t).map(function(t){return t.charCodeAt(0)}),this.symbolSize=e.ecc000_140SymbolSize,this.eccMode=e.eccMode,this.m_code=[],this.m_module=[]}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t},i=n(43),v=c(i),f=n(1),o=n(0),i=n(44),l=c(i),r(d,[{key:"getMatrix",value:function t(){var e,n,r,i,o,u,a,c,n,s,c,n,n,e=this.m_symbol,n=this.symbolSize,r=this.eccMode,i=this.m_code;if(569<e.length)throw new f.TextTooLargeException;if(o=v.default.chooseEncodationScheme(e),u="ECC000"===r?7:19,a=this.calculateDataBits(o),c=this.calculateTotalBits(o,u,a),n=this.f=v.default.getProperSymbolSize(n,c),c>v.default.getSymbolSizeInfo(n))throw new f.TextTooLargeException;return a+=30,(c=new l.default(s=[])).putBitsMSF(v.default.Constants.getFormatID(o)<<27,5),n=this.crcProcess(o),c.putBitsLSF(n,16),c.putBitsLSF(e.length,9),this.encode(o,c),(n=new l.default(i)).putBitsLSF(v.default.getECC(r).headerBits,u),c.offset=0,this.eccProcess(n,c,a),this.randomizeBits(),this.placeModule()}},{key:"eccProcess",value:function t(e,n,r){var i,o,u,a,c,s,f,l,h,i=this.eccMode;if("ECC000"===i)for(;n.offset<r;)e.putBit(n.fetchBit());else{a=!(u=[(o=v.default.getECC(i).eccInfo).inputBits]);do{for(a=!1,c=0;c<o.inputBits;++c)u[c]>>=1,u[c]=v.default.setBit(u[c],o.registerBits[c],n.fetchBit());for(s=!1,f=0;f<o.outputBits;++f){for(s=!1,l=0;l<o.outputMasks[f].length;++l)s^=0!=(u[o.outputMasks[f][l].registerNumber]&o.outputMasks[f][l].mask);e.putBit(s)}if(n.offset>=r){for(h=0;h<u.length&&0==u[h];++h);h==u.length&&(a=!0)}}while(!a)}}},{key:"randomizeBits",value:function t(){for(var e,n,r,i,e=this.m_code,n=this.f,r=~~((v.default.getSymbolSizeInfo(n)+7)/8),i=0;i<r;++i)e[i]^=v.default.Constants.RandomizeBytes[i]}},{key:"crcProcess",value:function t(e){var n,r,i,o,u,a,c,n=this.m_symbol,r=0,i=[];for(i.push(v.default.Constants.getFormatID(e)+1),i.push(0),i.push.apply(i,s(n)),o=33800,u=0;u<i.length;++u)for(a=0;a<8;++a)c=0!=(1&r),r>>=1,0!=(i[u]&1<<a)^c&&(r^=o);return r}},{key:"calculateDataBits",value:function t(e){var n,r,n=this.m_symbol,r=v.default.Constants.GroupLengths[e];return~~(n.length/r)*v.default.Constants.BitLengths[e][0]+(n.length%r==0?0:v.default.Constants.BitLengths[e][n.length%r])}},{key:"calculateTotalBits",value:function t(e,n,r){var i,r,i,o,i=this.eccMode,r=30+r,i=v.default.getECC(i).eccInfo,o;return n+(~~((r+i.inputBits-1)/i.inputBits)+i.registerBits[i.inputBits-1])*i.outputBits}},{key:"encode",value:function t(e,n){for(var r,i,o,u,a,c,s,f,r=this.m_symbol,i=0,o=e,u=v.default.Constants.GroupLengths[o],a=v.default.Constants.BaseValues[o],c=0;c<r.length;){for(i=0,s=1;i+=v.default.getCodeWord(e,r[c++])*s,s*=a,c%u!=0&&c<r.length;);n.putBitsLSF(i,v.default.Constants.BitLengths[o][f=c%u])}}},{key:"placeModule",value:function t(){for(var e,n,r,i,o,u,a,c,e,r,e=this.m_module,n=this.f,r=this.m_code,i=v.default.getSymbolSizeInfo(n),o=new l.default(e),u=new l.default(r),a=v.default.getModuleMapping(n),c=0;c<i;++c)o.putBit(u.getBit(a[c]));return e=2*v.default.getSymbolSizeValue(n)+9,r=v.default.createModules(e),v.default.setFinder(r,e),v.default.setRegionData(r,e,o),r}}]),e.default=d},function(t,e,n){"use strict";var r,i,a,o,u,c,s,f,l;function h(t){return t&&t.__esModule?t:{default:t}}function v(t){return 48<=t&&t<=57||32==t?u.Base11:65<=t&&t<=90?u.Base27:44<=t&&t<=47?u.Base41:t<=c?u.ASCII:u.Byte}function d(t){for(var e,n,r,e=u.Base11,n=0,r=t.length;n<r&&(e=w(e,v(t[n])))!==u.Byte;n++);return e}function w(t,e){if(t==e)return t;if(t==u.Byte||e==u.Byte)return u.Byte;var n=t;switch(t){case u.Base11:e==u.Base27?n=u.Base37:n<e&&(n=e);break;case u.Base27:e==u.Base11?n=u.Base37:n<e&&(n=e);break;case u.Base37:case u.Base41:n<e&&(n=e)}return n}function b(t){return t%256}function y(t,e){if(t==u.Byte)return e;if(t==u.ASCII)return b(127&e);var n=0;if(32!=e&&(48<=e&&e<=57&&(n=b(e-47)),t!=u.Base11)&&(n+=26,65<=e&&e<=90&&(n=b(e-64)),t==u.Base41))switch(e){case 44:return 38;case 45:return 39;case 46:return 37;case 47:return 40}return n}function p(t,e,n){var e=1<<e;return t&=~e,n&&(t|=e),t}function g(t,e){this.registerNumber=t,this.mask=1<<e}function m(t){var t=f[t];return{eccInfo:s.ECCInfos[t],headerBits:s.HeaderBits[t]}}function C(t){var e=l.indexOf(t);if(e<0)throw new o.BadArgumentsException({ecc000_140SymbolSize:t});return s.SymbolCapacities[e]}function k(t){return l.indexOf(t)}function A(t,e){if("auto"==t){t="square9";for(var n=0;n<=l.length-1;++n)if(e<=s.SymbolCapacities[n]){t=l[n];break}}return t}function O(t){var t=l.indexOf(t);return s.ModuleMapping[t]}function E(t,e){for(var n,r,i,o,u,n=t[0],r=0;r<e;r++)(0,a.isEven)(r)?n[r]=1:n[r]=0;for(i=t[e-1],o=0;o<e;o++)i[o]=1;for(u=1;u<e-1;u++)t[u][0]=1,(0,a.isEven)(u)?t[u][e-1]=1:t[u][e-1]=0}function j(t,e,n){var r,i;for(e-=2,r=0;r<e;++r)for(i=0;i<e;++i)t[1+r][1+i]=+n.getBit(r*e+i)}Object.defineProperty(e,"__esModule",{value:!0}),i=h(r=n(8)),a=n(0),o=n(1),u={Base11:0,Base27:1,Base37:2,Base41:3,ASCII:4,Byte:5},c=127,s={BaseValues:[11,27,37,41,128,256],GroupLengths:[6,5,4,4,1,1],HeaderBits:[126,57358,465934,523278,517006],BitLengths:[[21,4,7,11,14,18,21],[24,5,10,15,20,24],[21,6,11,16,21],[22,6,11,17,22],[7,7],[8,8]],SymbolCapacities:function(){for(var t,e,t=[],e=7;e<50;e+=2)t.push(e*e);return t}(),getFormatID:function t(e){return e===u.Base37?++e:e===u.Base41&&--e,e},ECCInfos:[{inputBits:1,registerBits:[0],outputBits:1,outputMasks:null},{inputBits:3,registerBits:[3,3,3],outputBits:4,outputMasks:[[new g(0,3),new g(1,0),new g(2,2),new g(2,1),new g(2,0)],[new g(0,1),new g(0,0),new g(1,3),new g(1,2),new g(1,0)],[new g(0,2),new g(0,1),new g(0,0),new g(1,2),new g(2,3),new g(2,2)],[new g(0,3),new g(0,2),new g(1,3),new g(1,2),new g(1,1),new g(2,3),new g(2,2),new g(2,0)]]},{inputBits:2,registerBits:[10,11],outputBits:3,outputMasks:[[new g(0,10),new g(0,9),new g(0,7),new g(0,5),new g(0,4),new g(0,3),new g(0,0),new g(1,8),new g(1,4),new g(1,3),new g(1,0)],[new g(0,9),new g(0,6),new g(0,5),new g(0,2),new g(0,1),new g(0,0),new g(1,11),new g(1,8),new g(1,5),new g(1,3),new g(1,2)],[new g(0,10),new g(0,5),new g(0,4),new g(0,3),new g(1,11),new g(1,10),new g(1,9),new g(1,7),new g(1,4),new g(1,2),new g(1,0)]]},{inputBits:1,registerBits:[15],outputBits:2,outputMasks:[[new g(0,15),new g(0,13),new g(0,10),new g(0,9),new g(0,8),new g(0,7),new g(0,6),new g(0,5),new g(0,0)],[new g(0,15),new g(0,14),new g(0,12),new g(0,11),new g(0,9),new g(0,4),new g(0,2),new g(0,1),new g(0,0)]]},{inputBits:1,registerBits:[13],outputBits:4,outputMasks:[[new g(0,13),new g(0,9),new g(0,6),new g(0,3),new g(0,1),new g(0,0)],[new g(0,13),new g(0,10),new g(0,9),new g(0,6),new g(0,5),new g(0,4),new g(0,3),new g(0,2),new g(0,0)],[new g(0,13),new g(0,12),new g(0,11),new g(0,9),new g(0,8),new g(0,6),new g(0,4),new g(0,2),new g(0,1),new g(0,0)],[new g(0,13),new g(0,12),new g(0,11),new g(0,9),new g(0,8),new g(0,6),new g(0,4),new g(0,3),new g(0,2),new g(0,1),new g(0,0)]]}],RandomizeBytes:[5,255,199,49,136,168,131,156,100,135,159,100,179,224,77,156,128,41,58,144,179,139,158,144,69,191,245,104,75,8,207,68,184,212,76,91,160,171,114,82,28,228,210,116,164,218,138,8,250,167,199,221,0,48,169,230,100,171,213,139,237,156,121,248,8,209,139,198,34,100,11,51,67,208,128,212,68,149,46,111,94,19,141,71,98,6,235,128,130,201,65,213,115,138,48,35,36,227,127,178,168,11,237,56,66,76,215,176,206,152,189,225,213,228,195,29,21,74,207,209,31,57,38,24,147,252,25,178,45,171,242,110,161,159,175,208,138,43,160,86,176,65,109,67,164,99,243,170,125,175,53,87,194,148,74,101,11,65,222,184,226,48,18,39,155,102,43,52,91,184,153,232,40,113,208,149,107,7,77,60,122,179,229,41,179,186,140,204,45,224,201,192,34,236,76,222,248,88,7,252,25,242,100,226,195,226,216,185,253,103,160,188,245,46,201,73,117,98,130,39,16,244,25,111,73,247,179,132,20,234,235,225,42,49,171,71,125,8,41,172,187,114,250,250,98,184,200,211,134,137,149,253,223,204,156,173,241,212,108,100,35,36,42,86,31,54,235,183,214,255,218,87,244,80,121,8,0],ModuleMapping:[[2,45,10,38,24,21,1,12,40,26,5,33,19,47,22,31,29,15,43,8,36,34,20,48,13,41,27,6,44,9,37,23,17,30,16,39,25,4,32,18,46,11,0,28,14,42,7,35,3],[2,19,55,10,46,28,64,73,1,62,17,53,35,71,8,80,44,26,49,31,67,4,76,40,22,58,13,69,6,78,42,24,60,15,51,33,74,38,20,56,11,47,29,65,37,25,61,16,52,34,70,7,79,43,12,48,30,66,63,75,39,21,57,32,68,5,77,41,23,59,14,50,0,72,36,18,54,9,45,27,3],[2,26,114,70,15,103,59,37,81,4,1,117,73,18,106,62,40,84,7,95,51,29,12,100,56,34,78,92,89,45,23,111,67,65,43,87,10,98,54,32,120,76,21,109,82,5,93,49,27,115,71,16,104,60,38,96,52,30,118,74,19,107,63,41,85,8,24,112,68,13,101,57,35,79,48,90,46,75,20,108,64,42,86,9,97,53,31,119,102,58,36,80,77,91,47,25,113,69,14,39,83,6,94,50,28,116,72,17,105,61,0,88,44,22,110,66,11,99,55,33,3],[2,159,29,133,81,16,120,68,42,146,94,91,1,37,141,89,24,128,76,50,154,102,11,115,63,167,83,18,122,70,44,148,96,5,109,57,161,31,135,125,73,47,151,99,8,112,60,164,34,138,86,21,40,144,92,107,105,53,157,27,131,79,14,118,66,103,12,116,64,168,38,142,90,25,129,77,51,155,110,58,162,32,136,84,19,123,71,45,149,97,6,165,35,139,87,22,126,74,48,152,100,9,113,61,132,80,15,119,67,41,145,93,55,106,54,158,28,23,127,75,49,153,101,10,114,62,166,36,140,88,69,43,147,95,4,108,56,160,30,134,82,17,121,150,98,7,111,59,163,33,137,85,20,124,72,46,0,104,52,156,26,130,78,13,117,65,39,143,3],[2,187,37,157,97,217,22,142,82,202,52,172,112,7,1,41,161,101,221,26,146,86,206,56,176,116,11,131,71,191,93,213,18,138,78,198,48,168,108,105,123,63,183,33,153,28,148,88,208,58,178,118,13,133,73,193,43,163,103,223,80,200,50,170,110,5,125,65,185,35,155,95,215,20,140,54,174,114,9,129,69,189,39,159,99,219,24,144,84,204,106,127,121,61,181,31,151,91,211,16,136,76,196,46,166,134,74,194,44,164,104,224,29,149,89,209,59,179,119,14,186,36,156,96,216,21,141,81,201,51,171,111,6,126,66,160,100,220,25,145,85,205,55,175,115,10,130,70,190,40,212,17,137,77,197,47,167,107,67,122,62,182,32,152,92,147,87,207,57,177,117,12,132,72,192,42,162,102,222,27,199,49,169,109,4,124,64,184,34,154,94,214,19,139,79,173,113,8,128,68,188,38,158,98,218,23,143,83,203,53,0,120,60,180,30,150,90,210,15,135,75,195,45,165,3],[2,69,205,35,171,103,239,18,154,86,222,52,188,120,256,273,1,220,50,186,118,254,33,169,101,237,67,203,135,271,16,288,152,84,178,110,246,25,161,93,229,59,195,127,263,8,280,144,76,212,42,250,29,165,97,233,63,199,131,267,12,284,148,80,216,46,182,114,157,89,225,55,191,123,259,4,276,140,72,208,38,174,106,242,21,235,65,201,133,269,14,286,150,82,218,48,184,116,252,31,167,99,193,125,261,6,278,142,74,210,40,176,108,244,23,159,91,227,57,265,10,282,146,78,214,44,180,112,248,27,163,95,231,61,197,129,274,138,70,206,36,172,104,240,19,155,87,223,53,189,121,257,137,83,219,49,185,117,253,32,168,100,236,66,202,134,270,15,287,151,41,177,109,245,24,160,92,228,58,194,126,262,7,279,143,75,211,113,249,28,164,96,232,62,198,130,266,11,283,147,79,215,45,181,20,156,88,224,54,190,122,258,255,275,139,71,207,37,173,105,241,98,234,64,200,132,268,13,285,149,81,217,47,183,115,251,30,166,56,192,124,260,5,277,141,73,209,39,175,107,243,22,158,90,226,128,264,9,281,145,77,213,43,179,111,247,26,162,94,230,60,196,0,272,136,68,204,34,170,102,238,17,153,85,221,51,187,119,3],[2,82,234,44,348,196,120,272,25,329,177,101,253,63,215,139,291,6,1,239,49,353,201,125,277,30,334,182,106,258,68,220,144,296,11,315,163,87,343,191,115,267,20,324,172,96,248,58,210,134,286,310,305,153,77,229,39,132,284,37,341,189,113,265,75,227,151,303,18,322,170,94,246,56,360,208,28,332,180,104,256,66,218,142,294,9,313,161,85,237,47,351,199,123,275,185,109,261,71,223,147,299,14,318,166,90,242,52,356,204,128,280,33,337,251,61,213,137,289,4,308,156,80,232,42,346,194,118,270,23,327,175,99,225,149,301,16,320,168,92,244,54,358,206,130,282,35,339,187,111,263,73,292,7,311,159,83,235,45,349,197,121,273,26,330,178,102,254,64,216,140,316,164,88,240,50,354,202,126,278,31,335,183,107,259,69,221,145,297,12,78,230,40,344,192,116,268,21,325,173,97,249,59,211,135,287,158,306,154,55,359,207,131,283,36,340,188,112,264,74,226,150,302,17,321,169,93,245,198,122,274,27,331,179,103,255,65,217,141,293,8,312,160,84,236,46,350,279,32,336,184,108,260,70,222,146,298,13,317,165,89,241,51,355,203,127,326,174,98,250,60,212,136,288,285,307,155,79,231,41,345,193,117,269,22,110,262,72,224,148,300,15,319,167,91,243,53,357,205,129,281,34,338,186,62,214,138,290,5,309,157,81,233,43,347,195,119,271,24,328,176,100,252,143,295,10,314,162,86,238,48,352,200,124,276,29,333,181,105,257,67,219,0,304,152,76,228,38,342,190,114,266,19,323,171,95,247,57,209,133,3],[2,88,424,256,46,382,214,130,298,25,361,193,109,277,67,403,235,151,319,4,1,437,269,59,395,227,143,311,38,374,206,122,290,80,416,248,164,332,17,353,185,101,49,385,217,133,301,28,364,196,112,280,70,406,238,154,322,7,343,175,91,427,259,222,138,306,33,369,201,117,285,75,411,243,159,327,12,348,180,96,432,264,54,390,295,22,358,190,106,274,64,400,232,148,316,340,337,169,85,421,253,43,379,211,127,377,209,125,293,83,419,251,167,335,20,356,188,104,440,272,62,398,230,146,314,41,115,283,73,409,241,157,325,10,346,178,94,430,262,52,388,220,136,304,31,367,199,78,414,246,162,330,15,351,183,99,435,267,57,393,225,141,309,36,372,204,120,288,236,152,320,5,341,173,89,425,257,47,383,215,131,299,26,362,194,110,278,68,404,333,18,354,186,102,438,270,60,396,228,144,312,39,375,207,123,291,81,417,249,165,344,176,92,428,260,50,386,218,134,302,29,365,197,113,281,71,407,239,155,323,8,97,433,265,55,391,223,139,307,34,370,202,118,286,76,412,244,160,328,13,349,181,254,44,380,212,128,296,23,359,191,107,275,65,401,233,149,317,172,338,170,86,422,397,229,145,313,40,376,208,124,292,82,418,250,166,334,19,355,187,103,439,271,61,135,303,30,366,198,114,282,72,408,240,156,324,9,345,177,93,429,261,51,387,219,35,371,203,119,287,77,413,245,161,329,14,350,182,98,434,266,56,392,224,140,308,192,108,276,66,402,234,150,318,315,339,171,87,423,255,45,381,213,129,297,24,360,289,79,415,247,163,331,16,352,184,100,436,268,58,394,226,142,310,37,373,205,121,405,237,153,321,6,342,174,90,426,258,48,384,216,132,300,27,363,195,111,279,69,158,326,11,347,179,95,431,263,53,389,221,137,305,32,368,200,116,284,74,410,242,0,336,168,84,420,252,42,378,210,126,294,21,357,189,105,273,63,399,231,147,3],[2,102,470,286,56,424,240,148,516,332,33,401,217,125,493,309,79,447,263,171,355,10,1,476,292,62,430,246,154,522,338,39,407,223,131,499,315,85,453,269,177,361,16,384,200,108,50,418,234,142,510,326,27,395,211,119,487,303,73,441,257,165,349,4,372,188,96,464,280,249,157,525,341,42,410,226,134,502,318,88,456,272,180,364,19,387,203,111,479,295,65,433,513,329,30,398,214,122,490,306,76,444,260,168,352,7,375,191,99,467,283,53,421,237,145,36,404,220,128,496,312,82,450,266,174,358,13,381,197,105,473,289,59,427,243,151,519,335,208,116,484,300,70,438,254,162,346,378,369,185,93,461,277,47,415,231,139,507,323,24,392,505,321,91,459,275,183,367,22,390,206,114,482,298,68,436,252,160,528,344,45,413,229,137,80,448,264,172,356,11,379,195,103,471,287,57,425,241,149,517,333,34,402,218,126,494,310,270,178,362,17,385,201,109,477,293,63,431,247,155,523,339,40,408,224,132,500,316,86,454,350,5,373,189,97,465,281,51,419,235,143,511,327,28,396,212,120,488,304,74,442,258,166,388,204,112,480,296,66,434,250,158,526,342,43,411,227,135,503,319,89,457,273,181,365,20,100,468,284,54,422,238,146,514,330,31,399,215,123,491,307,77,445,261,169,353,8,376,192,290,60,428,244,152,520,336,37,405,221,129,497,313,83,451,267,175,359,14,382,198,106,474,416,232,140,508,324,25,393,209,117,485,301,71,439,255,163,347,194,370,186,94,462,278,48,159,527,343,44,412,228,136,504,320,90,458,274,182,366,21,389,205,113,481,297,67,435,251,331,32,400,216,124,492,308,78,446,262,170,354,9,377,193,101,469,285,55,423,239,147,515,406,222,130,498,314,84,452,268,176,360,15,383,199,107,475,291,61,429,245,153,521,337,38,118,486,302,72,440,256,164,348,345,371,187,95,463,279,49,417,233,141,509,325,26,394,210,317,87,455,271,179,363,18,386,202,110,478,294,64,432,248,156,524,340,41,409,225,133,501,443,259,167,351,6,374,190,98,466,282,52,420,236,144,512,328,29,397,213,121,489,305,75,173,357,12,380,196,104,472,288,58,426,242,150,518,334,35,403,219,127,495,311,81,449,265,0,368,184,92,460,276,46,414,230,138,506,322,23,391,207,115,483,299,69,437,253,161,3],[2,603,103,503,303,53,453,253,153,553,353,28,428,228,128,528,328,78,478,278,178,578,378,375,1,123,523,323,73,473,273,173,573,373,48,448,248,148,548,348,98,498,298,198,598,398,23,423,223,623,311,61,461,261,161,561,361,36,436,236,136,536,336,86,486,286,186,586,386,11,411,211,611,111,511,467,267,167,567,367,42,442,242,142,542,342,92,492,292,192,592,392,17,417,217,617,117,517,317,67,155,555,355,30,430,230,130,530,330,80,480,280,180,580,380,5,405,205,605,105,505,305,55,455,255,370,45,445,245,145,545,345,95,495,295,195,595,395,20,420,220,620,120,520,320,70,470,270,170,570,433,233,133,533,333,83,483,283,183,583,383,8,408,208,608,108,508,308,58,458,258,158,558,358,33,139,539,339,89,489,289,189,589,389,14,414,214,614,114,514,314,64,464,264,164,564,364,39,439,239,326,76,476,276,176,576,376,403,401,201,601,101,501,301,51,451,251,151,551,351,26,426,226,126,526,499,299,199,599,399,24,424,224,624,124,524,324,74,474,274,174,574,374,49,449,249,149,549,349,99,187,587,387,12,412,212,612,112,512,312,62,462,262,162,562,362,37,437,237,137,537,337,87,487,287,393,18,418,218,618,118,518,318,68,468,268,168,568,368,43,443,243,143,543,343,93,493,293,193,593,406,206,606,106,506,306,56,456,256,156,556,356,31,431,231,131,531,331,81,481,281,181,581,381,6,621,121,521,321,71,471,271,171,571,371,46,446,246,146,546,346,96,496,296,196,596,396,21,421,221,509,309,59,459,259,159,559,359,34,434,234,134,534,334,84,484,284,184,584,384,9,409,209,609,109,65,465,265,165,565,365,40,440,240,140,540,340,90,490,290,190,590,390,15,415,215,615,115,515,315,252,152,552,352,27,427,227,127,527,327,77,477,277,177,577,377,203,402,202,602,102,502,302,52,452,572,372,47,447,247,147,547,347,97,497,297,197,597,397,22,422,222,622,122,522,322,72,472,272,172,35,435,235,135,535,335,85,485,285,185,585,385,10,410,210,610,110,510,310,60,460,260,160,560,360,241,141,541,341,91,491,291,191,591,391,16,416,216,616,116,516,316,66,466,266,166,566,366,41,441,529,329,79,479,279,179,579,379,4,404,204,604,104,504,304,54,454,254,154,554,354,29,429,229,129,94,494,294,194,594,394,19,419,219,619,119,519,319,69,469,269,169,569,369,44,444,244,144,544,344,282,182,582,382,7,407,207,607,107,507,307,57,457,257,157,557,357,32,432,232,132,532,332,82,482,588,388,13,413,213,613,113,513,313,63,463,263,163,563,363,38,438,238,138,538,338,88,488,288,188,0,400,200,600,100,500,300,50,450,250,150,550,350,25,425,225,125,525,325,75,475,275,175,575,3],[2,658,118,550,334,64,496,280,712,172,604,388,37,469,253,685,145,577,361,91,523,307,199,631,415,10,1,125,557,341,71,503,287,719,179,611,395,44,476,260,692,152,584,368,98,530,314,206,638,422,17,449,233,665,327,57,489,273,705,165,597,381,30,462,246,678,138,570,354,84,516,300,192,624,408,405,435,219,651,111,543,511,295,727,187,619,403,52,484,268,700,160,592,376,106,538,322,214,646,430,25,457,241,673,133,565,349,79,714,174,606,390,39,471,255,687,147,579,363,93,525,309,201,633,417,12,444,228,660,120,552,336,66,498,282,613,397,46,478,262,694,154,586,370,100,532,316,208,640,424,19,451,235,667,127,559,343,73,505,289,721,181,32,464,248,680,140,572,356,86,518,302,194,626,410,5,437,221,653,113,545,329,59,491,275,707,167,599,383,265,697,157,589,373,103,535,319,211,643,427,22,454,238,670,130,562,346,76,508,292,724,184,616,400,49,481,143,575,359,89,521,305,197,629,413,8,440,224,656,116,548,332,62,494,278,710,170,602,386,35,467,251,683,366,96,528,312,204,636,420,15,447,231,663,123,555,339,69,501,285,717,177,609,393,42,474,258,690,150,582,514,298,190,622,406,442,433,217,649,109,541,325,55,487,271,703,163,595,379,28,460,244,676,136,568,352,82,215,647,431,26,458,242,674,134,566,350,80,512,296,728,188,620,404,53,485,269,701,161,593,377,107,539,323,418,13,445,229,661,121,553,337,67,499,283,715,175,607,391,40,472,256,688,148,580,364,94,526,310,202,634,452,236,668,128,560,344,74,506,290,722,182,614,398,47,479,263,695,155,587,371,101,533,317,209,641,425,20,654,114,546,330,60,492,276,708,168,600,384,33,465,249,681,141,573,357,87,519,303,195,627,411,6,438,222,563,347,77,509,293,725,185,617,401,50,482,266,698,158,590,374,104,536,320,212,644,428,23,455,239,671,131,63,495,279,711,171,603,387,36,468,252,684,144,576,360,90,522,306,198,630,414,9,441,225,657,117,549,333,286,718,178,610,394,43,475,259,691,151,583,367,97,529,313,205,637,421,16,448,232,664,124,556,340,70,502,164,596,380,29,461,245,677,137,569,353,83,515,299,191,623,407,226,434,218,650,110,542,326,56,488,272,704,402,51,483,267,699,159,591,375,105,537,321,213,645,429,24,456,240,672,132,564,348,78,510,294,726,186,618,470,254,686,146,578,362,92,524,308,200,632,416,11,443,227,659,119,551,335,65,497,281,713,173,605,389,38,693,153,585,369,99,531,315,207,639,423,18,450,234,666,126,558,342,72,504,288,720,180,612,396,45,477,261,571,355,85,517,301,193,625,409,4,436,220,652,112,544,328,58,490,274,706,166,598,382,31,463,247,679,139,102,534,318,210,642,426,21,453,237,669,129,561,345,75,507,291,723,183,615,399,48,480,264,696,156,588,372,304,196,628,412,7,439,223,655,115,547,331,61,493,277,709,169,601,385,34,466,250,682,142,574,358,88,520,635,419,14,446,230,662,122,554,338,68,500,284,716,176,608,392,41,473,257,689,149,581,365,95,527,311,203,0,432,216,648,108,540,324,54,486,270,702,162,594,378,27,459,243,675,135,567,351,81,513,297,189,621,3],[2,703,123,587,355,819,65,529,297,761,181,645,413,36,500,268,732,152,616,384,94,558,326,790,210,674,442,7,1,141,605,373,837,83,547,315,779,199,663,431,54,518,286,750,170,634,402,112,576,344,808,228,692,460,25,489,257,721,359,823,69,533,301,765,185,649,417,40,504,272,736,156,620,388,98,562,330,794,214,678,446,11,475,243,707,127,591,76,540,308,772,192,656,424,47,511,279,743,163,627,395,105,569,337,801,221,685,453,18,482,250,714,134,598,366,830,293,757,177,641,409,32,496,264,728,148,612,380,90,554,322,786,206,670,438,435,467,235,699,119,583,351,815,61,525,201,665,433,56,520,288,752,172,636,404,114,578,346,810,230,694,462,27,491,259,723,143,607,375,839,85,549,317,781,419,42,506,274,738,158,622,390,100,564,332,796,216,680,448,13,477,245,709,129,593,361,825,71,535,303,767,187,651,513,281,745,165,629,397,107,571,339,803,223,687,455,20,484,252,716,136,600,368,832,78,542,310,774,194,658,426,49,730,150,614,382,92,556,324,788,208,672,440,5,469,237,701,121,585,353,817,63,527,295,759,179,643,411,34,498,266,632,400,110,574,342,806,226,690,458,23,487,255,719,139,603,371,835,81,545,313,777,197,661,429,52,516,284,748,168,96,560,328,792,212,676,444,9,473,241,705,125,589,357,821,67,531,299,763,183,647,415,38,502,270,734,154,618,386,335,799,219,683,451,16,480,248,712,132,596,364,828,74,538,306,770,190,654,422,45,509,277,741,161,625,393,103,567,204,668,436,471,465,233,697,117,581,349,813,59,523,291,755,175,639,407,30,494,262,726,146,610,378,88,552,320,784,463,28,492,260,724,144,608,376,840,86,550,318,782,202,666,434,57,521,289,753,173,637,405,115,579,347,811,231,695,478,246,710,130,594,362,826,72,536,304,768,188,652,420,43,507,275,739,159,623,391,101,565,333,797,217,681,449,14,717,137,601,369,833,79,543,311,775,195,659,427,50,514,282,746,166,630,398,108,572,340,804,224,688,456,21,485,253,586,354,818,64,528,296,760,180,644,412,35,499,267,731,151,615,383,93,557,325,789,209,673,441,6,470,238,702,122,836,82,546,314,778,198,662,430,53,517,285,749,169,633,401,111,575,343,807,227,691,459,24,488,256,720,140,604,372,532,300,764,184,648,416,39,503,271,735,155,619,387,97,561,329,793,213,677,445,10,474,242,706,126,590,358,822,68,771,191,655,423,46,510,278,742,162,626,394,104,568,336,800,220,684,452,17,481,249,713,133,597,365,829,75,539,307,640,408,31,495,263,727,147,611,379,89,553,321,785,205,669,437,239,466,234,698,118,582,350,814,60,524,292,756,176,55,519,287,751,171,635,403,113,577,345,809,229,693,461,26,490,258,722,142,606,374,838,84,548,316,780,200,664,432,273,737,157,621,389,99,563,331,795,215,679,447,12,476,244,708,128,592,360,824,70,534,302,766,186,650,418,41,505,164,628,396,106,570,338,802,222,686,454,19,483,251,715,135,599,367,831,77,541,309,773,193,657,425,48,512,280,744,381,91,555,323,787,207,671,439,4,468,236,700,120,584,352,816,62,526,294,758,178,642,410,33,497,265,729,149,613,573,341,805,225,689,457,22,486,254,718,138,602,370,834,80,544,312,776,196,660,428,51,515,283,747,167,631,399,109,791,211,675,443,8,472,240,704,124,588,356,820,66,530,298,762,182,646,414,37,501,269,733,153,617,385,95,559,327,682,450,15,479,247,711,131,595,363,827,73,537,305,769,189,653,421,44,508,276,740,160,624,392,102,566,334,798,218,0,464,232,696,116,580,348,812,58,522,290,754,174,638,406,29,493,261,725,145,609,377,87,551,319,783,203,667,3],[2,759,139,635,387,883,77,573,325,821,201,697,449,945,46,542,294,790,170,666,418,914,108,604,356,852,232,728,480,15,1,147,643,395,891,85,581,333,829,209,705,457,953,54,550,302,798,178,674,426,922,116,612,364,860,240,736,488,23,519,271,767,379,875,69,565,317,813,193,689,441,937,38,534,286,782,162,658,410,906,100,596,348,844,224,720,472,7,503,255,751,131,627,89,585,337,833,213,709,461,957,58,554,306,802,182,678,430,926,120,616,368,864,244,740,492,27,523,275,771,151,647,399,895,321,817,197,693,445,941,42,538,290,786,166,662,414,910,104,600,352,848,228,724,476,11,507,259,755,135,631,383,879,73,569,205,701,453,949,50,546,298,794,174,670,422,918,112,608,360,856,236,732,484,19,515,267,763,143,639,391,887,81,577,329,825,437,933,34,530,282,778,158,654,406,902,96,592,344,840,220,716,468,465,499,251,747,127,623,375,871,65,561,313,809,189,685,60,556,308,804,184,680,432,928,122,618,370,866,246,742,494,29,525,277,773,153,649,401,897,91,587,339,835,215,711,463,959,292,788,168,664,416,912,106,602,354,850,230,726,478,13,509,261,757,137,633,385,881,75,571,323,819,199,695,447,943,44,540,176,672,424,920,114,610,362,858,238,734,486,21,517,269,765,145,641,393,889,83,579,331,827,207,703,455,951,52,548,300,796,408,904,98,594,346,842,222,718,470,5,501,253,749,129,625,377,873,67,563,315,811,191,687,439,935,36,532,284,780,160,656,118,614,366,862,242,738,490,25,521,273,769,149,645,397,893,87,583,335,831,211,707,459,955,56,552,304,800,180,676,428,924,350,846,226,722,474,9,505,257,753,133,629,381,877,71,567,319,815,195,691,443,939,40,536,288,784,164,660,412,908,102,598,234,730,482,17,513,265,761,141,637,389,885,79,575,327,823,203,699,451,947,48,544,296,792,172,668,420,916,110,606,358,854,466,511,497,249,745,125,621,373,869,63,559,311,807,187,683,435,931,32,528,280,776,156,652,404,900,94,590,342,838,218,714,526,278,774,154,650,402,898,92,588,340,836,216,712,464,960,61,557,309,805,185,681,433,929,123,619,371,867,247,743,495,30,758,138,634,386,882,76,572,324,820,200,696,448,944,45,541,293,789,169,665,417,913,107,603,355,851,231,727,479,14,510,262,642,394,890,84,580,332,828,208,704,456,952,53,549,301,797,177,673,425,921,115,611,363,859,239,735,487,22,518,270,766,146,874,68,564,316,812,192,688,440,936,37,533,285,781,161,657,409,905,99,595,347,843,223,719,471,6,502,254,750,130,626,378,584,336,832,212,708,460,956,57,553,305,801,181,677,429,925,119,615,367,863,243,739,491,26,522,274,770,150,646,398,894,88,816,196,692,444,940,41,537,289,785,165,661,413,909,103,599,351,847,227,723,475,10,506,258,754,134,630,382,878,72,568,320,700,452,948,49,545,297,793,173,669,421,917,111,607,359,855,235,731,483,18,514,266,762,142,638,390,886,80,576,328,824,204,932,33,529,281,777,157,653,405,901,95,591,343,839,219,715,467,263,498,250,746,126,622,374,870,64,560,312,808,188,684,436,555,307,803,183,679,431,927,121,617,369,865,245,741,493,28,524,276,772,152,648,400,896,90,586,338,834,214,710,462,958,59,787,167,663,415,911,105,601,353,849,229,725,477,12,508,260,756,136,632,384,880,74,570,322,818,198,694,446,942,43,539,291,671,423,919,113,609,361,857,237,733,485,20,516,268,764,144,640,392,888,82,578,330,826,206,702,454,950,51,547,299,795,175,903,97,593,345,841,221,717,469,4,500,252,748,128,624,376,872,66,562,314,810,190,686,438,934,35,531,283,779,159,655,407,613,365,861,241,737,489,24,520,272,768,148,644,396,892,86,582,334,830,210,706,458,954,55,551,303,799,179,675,427,923,117,845,225,721,473,8,504,256,752,132,628,380,876,70,566,318,814,194,690,442,938,39,535,287,783,163,659,411,907,101,597,349,729,481,16,512,264,760,140,636,388,884,78,574,326,822,202,698,450,946,47,543,295,791,171,667,419,915,109,605,357,853,233,0,496,248,744,124,620,372,868,62,558,310,806,186,682,434,930,31,527,279,775,155,651,403,899,93,589,341,837,217,713,3],[2,265,793,133,661,397,925,67,595,331,859,199,727,463,991,34,562,298,826,166,694,430,958,100,628,364,892,232,760,496,1024,1057,1,824,164,692,428,956,98,626,362,890,230,758,494,1022,65,593,329,857,197,725,461,989,131,659,395,923,263,791,527,1055,32,1088,560,296,676,412,940,82,610,346,874,214,742,478,1006,49,577,313,841,181,709,445,973,115,643,379,907,247,775,511,1039,16,1072,544,280,808,148,948,90,618,354,882,222,750,486,1014,57,585,321,849,189,717,453,981,123,651,387,915,255,783,519,1047,24,1080,552,288,816,156,684,420,602,338,866,206,734,470,998,41,569,305,833,173,701,437,965,107,635,371,899,239,767,503,1031,8,1064,536,272,800,140,668,404,932,74,886,226,754,490,1018,61,589,325,853,193,721,457,985,127,655,391,919,259,787,523,1051,28,1084,556,292,820,160,688,424,952,94,622,358,738,474,1002,45,573,309,837,177,705,441,969,111,639,375,903,243,771,507,1035,12,1068,540,276,804,144,672,408,936,78,606,342,870,210,1010,53,581,317,845,185,713,449,977,119,647,383,911,251,779,515,1043,20,1076,548,284,812,152,680,416,944,86,614,350,878,218,746,482,565,301,829,169,697,433,961,103,631,367,895,235,763,499,1027,4,1060,532,268,796,136,664,400,928,70,598,334,862,202,730,466,994,37,855,195,723,459,987,129,657,393,921,261,789,525,1053,30,1086,558,294,822,162,690,426,954,96,624,360,888,228,756,492,1020,63,591,327,707,443,971,113,641,377,905,245,773,509,1037,14,1070,542,278,806,146,674,410,938,80,608,344,872,212,740,476,1004,47,575,311,839,179,979,121,649,385,913,253,781,517,1045,22,1078,550,286,814,154,682,418,946,88,616,352,880,220,748,484,1012,55,583,319,847,187,715,451,633,369,897,237,765,501,1029,6,1062,534,270,798,138,666,402,930,72,600,336,864,204,732,468,996,39,567,303,831,171,699,435,963,105,917,257,785,521,1049,26,1082,554,290,818,158,686,422,950,92,620,356,884,224,752,488,1016,59,587,323,851,191,719,455,983,125,653,389,769,505,1033,10,1066,538,274,802,142,670,406,934,76,604,340,868,208,736,472,1e3,43,571,307,835,175,703,439,967,109,637,373,901,241,1041,18,1074,546,282,810,150,678,414,942,84,612,348,876,216,744,480,1008,51,579,315,843,183,711,447,975,117,645,381,909,249,777,513,1058,530,266,794,134,662,398,926,68,596,332,860,200,728,464,992,35,563,299,827,167,695,431,959,101,629,365,893,233,761,497,1025,529,295,823,163,691,427,955,97,625,361,889,229,757,493,1021,64,592,328,856,196,724,460,988,130,658,394,922,262,790,526,1054,31,1087,559,147,675,411,939,81,609,345,873,213,741,477,1005,48,576,312,840,180,708,444,972,114,642,378,906,246,774,510,1038,15,1071,543,279,807,419,947,89,617,353,881,221,749,485,1013,56,584,320,848,188,716,452,980,122,650,386,914,254,782,518,1046,23,1079,551,287,815,155,683,73,601,337,865,205,733,469,997,40,568,304,832,172,700,436,964,106,634,370,898,238,766,502,1030,7,1063,535,271,799,139,667,403,931,357,885,225,753,489,1017,60,588,324,852,192,720,456,984,126,654,390,918,258,786,522,1050,27,1083,555,291,819,159,687,423,951,93,621,209,737,473,1001,44,572,308,836,176,704,440,968,110,638,374,902,242,770,506,1034,11,1067,539,275,803,143,671,407,935,77,605,341,869,481,1009,52,580,316,844,184,712,448,976,118,646,382,910,250,778,514,1042,19,1075,547,283,811,151,679,415,943,85,613,349,877,217,745,36,564,300,828,168,696,432,960,102,630,366,894,234,762,498,1026,1023,1059,531,267,795,135,663,399,927,69,597,333,861,201,729,465,993,326,854,194,722,458,986,128,656,392,920,260,788,524,1052,29,1085,557,293,821,161,689,425,953,95,623,359,887,227,755,491,1019,62,590,178,706,442,970,112,640,376,904,244,772,508,1036,13,1069,541,277,805,145,673,409,937,79,607,343,871,211,739,475,1003,46,574,310,838,450,978,120,648,384,912,252,780,516,1044,21,1077,549,285,813,153,681,417,945,87,615,351,879,219,747,483,1011,54,582,318,846,186,714,104,632,368,896,236,764,500,1028,5,1061,533,269,797,137,665,401,929,71,599,335,863,203,731,467,995,38,566,302,830,170,698,434,962,388,916,256,784,520,1048,25,1081,553,289,817,157,685,421,949,91,619,355,883,223,751,487,1015,58,586,322,850,190,718,454,982,124,652,240,768,504,1032,9,1065,537,273,801,141,669,405,933,75,603,339,867,207,735,471,999,42,570,306,834,174,702,438,966,108,636,372,900,512,1040,17,1073,545,281,809,149,677,413,941,83,611,347,875,215,743,479,1007,50,578,314,842,182,710,446,974,116,644,380,908,248,776,0,1056,528,264,792,132,660,396,924,66,594,330,858,198,726,462,990,33,561,297,825,165,693,429,957,99,627,363,891,231,759,495,3],[2,290,850,150,710,430,990,80,1200,640,360,920,220,780,500,1060,45,1165,605,325,885,185,745,465,1025,115,675,395,955,255,815,535,1095,10,1,859,159,719,439,999,89,1209,649,369,929,229,789,509,1069,54,1174,614,334,894,194,754,474,1034,124,684,404,964,264,824,544,1104,19,1139,579,299,701,421,981,71,1191,631,351,911,211,771,491,1051,36,1156,596,316,876,176,736,456,1016,106,666,386,946,246,806,526,1086,1130,1121,561,281,841,141,1014,104,1224,664,384,944,244,804,524,1084,69,1189,629,349,909,209,769,489,1049,139,699,419,979,279,839,559,1119,34,1154,594,314,874,174,734,454,1207,647,367,927,227,787,507,1067,52,1172,612,332,892,192,752,472,1032,122,682,402,962,262,822,542,1102,17,1137,577,297,857,157,717,437,997,87,376,936,236,796,516,1076,61,1181,621,341,901,201,761,481,1041,131,691,411,971,271,831,551,1111,26,1146,586,306,866,166,726,446,1006,96,1216,656,218,778,498,1058,43,1163,603,323,883,183,743,463,1023,113,673,393,953,253,813,533,1093,8,1128,568,288,848,148,708,428,988,78,1198,638,358,918,520,1080,65,1185,625,345,905,205,765,485,1045,135,695,415,975,275,835,555,1115,30,1150,590,310,870,170,730,450,1010,100,1220,660,380,940,240,800,48,1168,608,328,888,188,748,468,1028,118,678,398,958,258,818,538,1098,13,1133,573,293,853,153,713,433,993,83,1203,643,363,923,223,783,503,1063,617,337,897,197,757,477,1037,127,687,407,967,267,827,547,1107,22,1142,582,302,862,162,722,442,1002,92,1212,652,372,932,232,792,512,1072,57,1177,879,179,739,459,1019,109,669,389,949,249,809,529,1089,4,1124,564,284,844,144,704,424,984,74,1194,634,354,914,214,774,494,1054,39,1159,599,319,767,487,1047,137,697,417,977,277,837,557,1117,32,1152,592,312,872,172,732,452,1012,102,1222,662,382,942,242,802,522,1082,67,1187,627,347,907,207,1030,120,680,400,960,260,820,540,1100,15,1135,575,295,855,155,715,435,995,85,1205,645,365,925,225,785,505,1065,50,1170,610,330,890,190,750,470,689,409,969,269,829,549,1109,24,1144,584,304,864,164,724,444,1004,94,1214,654,374,934,234,794,514,1074,59,1179,619,339,899,199,759,479,1039,129,951,251,811,531,1091,6,1126,566,286,846,146,706,426,986,76,1196,636,356,916,216,776,496,1056,41,1161,601,321,881,181,741,461,1021,111,671,391,833,553,1113,28,1148,588,308,868,168,728,448,1008,98,1218,658,378,938,238,798,518,1078,63,1183,623,343,903,203,763,483,1043,133,693,413,973,273,1096,11,1131,571,291,851,151,711,431,991,81,1201,641,361,921,221,781,501,1061,46,1166,606,326,886,186,746,466,1026,116,676,396,956,256,816,536,1140,580,300,860,160,720,440,1e3,90,1210,650,370,930,230,790,510,1070,55,1175,615,335,895,195,755,475,1035,125,685,405,965,265,825,545,1105,20,282,842,142,702,422,982,72,1192,632,352,912,212,772,492,1052,37,1157,597,317,877,177,737,457,1017,107,667,387,947,247,807,527,1087,570,1122,562,173,733,453,1013,103,1223,663,383,943,243,803,523,1083,68,1188,628,348,908,208,768,488,1048,138,698,418,978,278,838,558,1118,33,1153,593,313,873,436,996,86,1206,646,366,926,226,786,506,1066,51,1171,611,331,891,191,751,471,1031,121,681,401,961,261,821,541,1101,16,1136,576,296,856,156,716,95,1215,655,375,935,235,795,515,1075,60,1180,620,340,900,200,760,480,1040,130,690,410,970,270,830,550,1110,25,1145,585,305,865,165,725,445,1005,637,357,917,217,777,497,1057,42,1162,602,322,882,182,742,462,1022,112,672,392,952,252,812,532,1092,7,1127,567,287,847,147,707,427,987,77,1197,939,239,799,519,1079,64,1184,624,344,904,204,764,484,1044,134,694,414,974,274,834,554,1114,29,1149,589,309,869,169,729,449,1009,99,1219,659,379,782,502,1062,47,1167,607,327,887,187,747,467,1027,117,677,397,957,257,817,537,1097,12,1132,572,292,852,152,712,432,992,82,1202,642,362,922,222,1071,56,1176,616,336,896,196,756,476,1036,126,686,406,966,266,826,546,1106,21,1141,581,301,861,161,721,441,1001,91,1211,651,371,931,231,791,511,1158,598,318,878,178,738,458,1018,108,668,388,948,248,808,528,1088,1085,1123,563,283,843,143,703,423,983,73,1193,633,353,913,213,773,493,1053,38,346,906,206,766,486,1046,136,696,416,976,276,836,556,1116,31,1151,591,311,871,171,731,451,1011,101,1221,661,381,941,241,801,521,1081,66,1186,626,189,749,469,1029,119,679,399,959,259,819,539,1099,14,1134,574,294,854,154,714,434,994,84,1204,644,364,924,224,784,504,1064,49,1169,609,329,889,478,1038,128,688,408,968,268,828,548,1108,23,1143,583,303,863,163,723,443,1003,93,1213,653,373,933,233,793,513,1073,58,1178,618,338,898,198,758,110,670,390,950,250,810,530,1090,5,1125,565,285,845,145,705,425,985,75,1195,635,355,915,215,775,495,1055,40,1160,600,320,880,180,740,460,1020,412,972,272,832,552,1112,27,1147,587,307,867,167,727,447,1007,97,1217,657,377,937,237,797,517,1077,62,1182,622,342,902,202,762,482,1042,132,692,254,814,534,1094,9,1129,569,289,849,149,709,429,989,79,1199,639,359,919,219,779,499,1059,44,1164,604,324,884,184,744,464,1024,114,674,394,954,543,1103,18,1138,578,298,858,158,718,438,998,88,1208,648,368,928,228,788,508,1068,53,1173,613,333,893,193,753,473,1033,123,683,403,963,263,823,0,1120,560,280,840,140,700,420,980,70,1190,630,350,910,210,770,490,1050,35,1155,595,315,875,175,735,455,1015,105,665,385,945,245,805,525,3],[2,302,894,154,1338,746,450,1042,80,1264,672,376,968,228,820,524,1116,43,1227,635,339,931,191,783,487,1079,117,1301,709,413,1005,265,857,561,1153,6,1,917,177,1361,769,473,1065,103,1287,695,399,991,251,843,547,1139,66,1250,658,362,954,214,806,510,1102,140,1324,732,436,1028,288,880,584,1176,29,1213,621,325,1343,751,455,1047,85,1269,677,381,973,233,825,529,1121,48,1232,640,344,936,196,788,492,1084,122,1306,714,418,1010,270,862,566,1158,11,1195,603,307,899,159,464,1056,94,1278,686,390,982,242,834,538,1130,57,1241,649,353,945,205,797,501,1093,131,1315,723,427,1019,279,871,575,1167,20,1204,612,316,908,168,1352,760,75,1259,667,371,963,223,815,519,1111,38,1222,630,334,926,186,778,482,1074,112,1296,704,408,1e3,260,852,556,1148,1190,1185,593,297,889,149,1333,741,445,1037,702,406,998,258,850,554,1146,73,1257,665,369,961,221,813,517,1109,147,1331,739,443,1035,295,887,591,1183,36,1220,628,332,924,184,1368,776,480,1072,110,1294,980,240,832,536,1128,55,1239,647,351,943,203,795,499,1091,129,1313,721,425,1017,277,869,573,1165,18,1202,610,314,906,166,1350,758,462,1054,92,1276,684,388,841,545,1137,64,1248,656,360,952,212,804,508,1100,138,1322,730,434,1026,286,878,582,1174,27,1211,619,323,915,175,1359,767,471,1063,101,1285,693,397,989,249,1119,46,1230,638,342,934,194,786,490,1082,120,1304,712,416,1008,268,860,564,1156,9,1193,601,305,897,157,1341,749,453,1045,83,1267,675,379,971,231,823,527,1253,661,365,957,217,809,513,1105,143,1327,735,439,1031,291,883,587,1179,32,1216,624,328,920,180,1364,772,476,1068,106,1290,698,402,994,254,846,550,1142,69,347,939,199,791,495,1087,125,1309,717,421,1013,273,865,569,1161,14,1198,606,310,902,162,1346,754,458,1050,88,1272,680,384,976,236,828,532,1124,51,1235,643,208,800,504,1096,134,1318,726,430,1022,282,874,578,1170,23,1207,615,319,911,171,1355,763,467,1059,97,1281,689,393,985,245,837,541,1133,60,1244,652,356,948,485,1077,115,1299,707,411,1003,263,855,559,1151,4,1188,596,300,892,152,1336,744,448,1040,78,1262,670,374,966,226,818,522,1114,41,1225,633,337,929,189,781,145,1329,737,441,1033,293,885,589,1181,34,1218,626,330,922,182,1366,774,478,1070,108,1292,700,404,996,256,848,552,1144,71,1255,663,367,959,219,811,515,1107,719,423,1015,275,867,571,1163,16,1200,608,312,904,164,1348,756,460,1052,90,1274,682,386,978,238,830,534,1126,53,1237,645,349,941,201,793,497,1089,127,1311,1024,284,876,580,1172,25,1209,617,321,913,173,1357,765,469,1061,99,1283,691,395,987,247,839,543,1135,62,1246,654,358,950,210,802,506,1098,136,1320,728,432,858,562,1154,7,1191,599,303,895,155,1339,747,451,1043,81,1265,673,377,969,229,821,525,1117,44,1228,636,340,932,192,784,488,1080,118,1302,710,414,1006,266,1177,30,1214,622,326,918,178,1362,770,474,1066,104,1288,696,400,992,252,844,548,1140,67,1251,659,363,955,215,807,511,1103,141,1325,733,437,1029,289,881,585,1196,604,308,900,160,1344,752,456,1048,86,1270,678,382,974,234,826,530,1122,49,1233,641,345,937,197,789,493,1085,123,1307,715,419,1011,271,863,567,1159,12,317,909,169,1353,761,465,1057,95,1279,687,391,983,243,835,539,1131,58,1242,650,354,946,206,798,502,1094,132,1316,724,428,1020,280,872,576,1168,21,1205,613,150,1334,742,446,1038,76,1260,668,372,964,224,816,520,1112,39,1223,631,335,927,187,779,483,1075,113,1297,705,409,1001,261,853,557,1149,598,1186,594,298,890,775,479,1071,109,1293,701,405,997,257,849,553,1145,72,1256,664,368,960,220,812,516,1108,146,1330,738,442,1034,294,886,590,1182,35,1219,627,331,923,183,1367,1053,91,1275,683,387,979,239,831,535,1127,54,1238,646,350,942,202,794,498,1090,128,1312,720,424,1016,276,868,572,1164,17,1201,609,313,905,165,1349,757,461,1284,692,396,988,248,840,544,1136,63,1247,655,359,951,211,803,507,1099,137,1321,729,433,1025,285,877,581,1173,26,1210,618,322,914,174,1358,766,470,1062,100,378,970,230,822,526,1118,45,1229,637,341,933,193,785,489,1081,119,1303,711,415,1007,267,859,563,1155,8,1192,600,304,896,156,1340,748,452,1044,82,1266,674,253,845,549,1141,68,1252,660,364,956,216,808,512,1104,142,1326,734,438,1030,290,882,586,1178,31,1215,623,327,919,179,1363,771,475,1067,105,1289,697,401,993,531,1123,50,1234,642,346,938,198,790,494,1086,124,1308,716,420,1012,272,864,568,1160,13,1197,605,309,901,161,1345,753,457,1049,87,1271,679,383,975,235,827,59,1243,651,355,947,207,799,503,1095,133,1317,725,429,1021,281,873,577,1169,22,1206,614,318,910,170,1354,762,466,1058,96,1280,688,392,984,244,836,540,1132,632,336,928,188,780,484,1076,114,1298,706,410,1002,262,854,558,1150,1147,1187,595,299,891,151,1335,743,447,1039,77,1261,669,373,965,225,817,521,1113,40,1224,958,218,810,514,1106,144,1328,736,440,1032,292,884,588,1180,33,1217,625,329,921,181,1365,773,477,1069,107,1291,699,403,995,255,847,551,1143,70,1254,662,366,792,496,1088,126,1310,718,422,1014,274,866,570,1162,15,1199,607,311,903,163,1347,755,459,1051,89,1273,681,385,977,237,829,533,1125,52,1236,644,348,940,200,1097,135,1319,727,431,1023,283,875,579,1171,24,1208,616,320,912,172,1356,764,468,1060,98,1282,690,394,986,246,838,542,1134,61,1245,653,357,949,209,801,505,1300,708,412,1004,264,856,560,1152,5,1189,597,301,893,153,1337,745,449,1041,79,1263,671,375,967,227,819,523,1115,42,1226,634,338,930,190,782,486,1078,116,435,1027,287,879,583,1175,28,1212,620,324,916,176,1360,768,472,1064,102,1286,694,398,990,250,842,546,1138,65,1249,657,361,953,213,805,509,1101,139,1323,731,269,861,565,1157,10,1194,602,306,898,158,1342,750,454,1046,84,1268,676,380,972,232,824,528,1120,47,1231,639,343,935,195,787,491,1083,121,1305,713,417,1009,574,1166,19,1203,611,315,907,167,1351,759,463,1055,93,1277,685,389,981,241,833,537,1129,56,1240,648,352,944,204,796,500,1092,130,1314,722,426,1018,278,870,0,1184,592,296,888,148,1332,740,444,1036,74,1258,666,370,962,222,814,518,1110,37,1221,629,333,925,185,777,481,1073,111,1295,703,407,999,259,851,555,3],[2,328,952,172,1420,796,484,1108,94,1342,718,406,1030,250,1498,874,562,1186,55,1303,679,367,991,211,1459,835,523,1147,133,1381,757,445,1069,289,913,601,1225,16,1,962,182,1430,806,494,1118,104,1352,728,416,1040,260,1508,884,572,1196,65,1313,689,377,1001,221,1469,845,533,1157,143,1391,767,455,1079,299,923,611,1235,26,1274,650,338,1410,786,474,1098,84,1332,708,396,1020,240,1488,864,552,1176,45,1293,669,357,981,201,1449,825,513,1137,123,1371,747,435,1059,279,903,591,1215,6,1254,630,318,942,162,499,1123,109,1357,733,421,1045,265,1513,889,577,1201,70,1318,694,382,1006,226,1474,850,538,1162,148,1396,772,460,1084,304,928,616,1240,31,1279,655,343,967,187,1435,811,89,1337,713,401,1025,245,1493,869,557,1181,50,1298,674,362,986,206,1454,830,518,1142,128,1376,752,440,1064,284,908,596,1220,11,1259,635,323,947,167,1415,791,479,1103,723,411,1035,255,1503,879,567,1191,60,1308,684,372,996,216,1464,840,528,1152,138,1386,762,450,1074,294,918,606,1230,21,1269,645,333,957,177,1425,801,489,1113,99,1347,1015,235,1483,859,547,1171,40,1288,664,352,976,196,1444,820,508,1132,118,1366,742,430,1054,274,898,586,1210,1264,1249,625,313,937,157,1405,781,469,1093,79,1327,703,391,1520,896,584,1208,77,1325,701,389,1013,233,1481,857,545,1169,155,1403,779,467,1091,311,935,623,1247,38,1286,662,350,974,194,1442,818,506,1130,116,1364,740,428,1052,272,565,1189,58,1306,682,370,994,214,1462,838,526,1150,136,1384,760,448,1072,292,916,604,1228,19,1267,643,331,955,175,1423,799,487,1111,97,1345,721,409,1033,253,1501,877,68,1316,692,380,1004,224,1472,848,536,1160,146,1394,770,458,1082,302,926,614,1238,29,1277,653,341,965,185,1433,809,497,1121,107,1355,731,419,1043,263,1511,887,575,1199,672,360,984,204,1452,828,516,1140,126,1374,750,438,1062,282,906,594,1218,9,1257,633,321,945,165,1413,789,477,1101,87,1335,711,399,1023,243,1491,867,555,1179,48,1296,1009,229,1477,853,541,1165,151,1399,775,463,1087,307,931,619,1243,34,1282,658,346,970,190,1438,814,502,1126,112,1360,736,424,1048,268,1516,892,580,1204,73,1321,697,385,1457,833,521,1145,131,1379,755,443,1067,287,911,599,1223,14,1262,638,326,950,170,1418,794,482,1106,92,1340,716,404,1028,248,1496,872,560,1184,53,1301,677,365,989,209,531,1155,141,1389,765,453,1077,297,921,609,1233,24,1272,648,336,960,180,1428,804,492,1116,102,1350,726,414,1038,258,1506,882,570,1194,63,1311,687,375,999,219,1467,843,121,1369,745,433,1057,277,901,589,1213,4,1252,628,316,940,160,1408,784,472,1096,82,1330,706,394,1018,238,1486,862,550,1174,43,1291,667,355,979,199,1447,823,511,1135,777,465,1089,309,933,621,1245,36,1284,660,348,972,192,1440,816,504,1128,114,1362,738,426,1050,270,1518,894,582,1206,75,1323,699,387,1011,231,1479,855,543,1167,153,1401,1070,290,914,602,1226,17,1265,641,329,953,173,1421,797,485,1109,95,1343,719,407,1031,251,1499,875,563,1187,56,1304,680,368,992,212,1460,836,524,1148,134,1382,758,446,924,612,1236,27,1275,651,339,963,183,1431,807,495,1119,105,1353,729,417,1041,261,1509,885,573,1197,66,1314,690,378,1002,222,1470,846,534,1158,144,1392,768,456,1080,300,1216,7,1255,631,319,943,163,1411,787,475,1099,85,1333,709,397,1021,241,1489,865,553,1177,46,1294,670,358,982,202,1450,826,514,1138,124,1372,748,436,1060,280,904,592,1280,656,344,968,188,1436,812,500,1124,110,1358,734,422,1046,266,1514,890,578,1202,71,1319,695,383,1007,227,1475,851,539,1163,149,1397,773,461,1085,305,929,617,1241,32,324,948,168,1416,792,480,1104,90,1338,714,402,1026,246,1494,870,558,1182,51,1299,675,363,987,207,1455,831,519,1143,129,1377,753,441,1065,285,909,597,1221,12,1260,636,178,1426,802,490,1114,100,1348,724,412,1036,256,1504,880,568,1192,61,1309,685,373,997,217,1465,841,529,1153,139,1387,763,451,1075,295,919,607,1231,22,1270,646,334,958,782,470,1094,80,1328,704,392,1016,236,1484,860,548,1172,41,1289,665,353,977,197,1445,821,509,1133,119,1367,743,431,1055,275,899,587,1211,640,1250,626,314,938,158,1406,1129,115,1363,739,427,1051,271,1519,895,583,1207,76,1324,700,388,1012,232,1480,856,544,1168,154,1402,778,466,1090,310,934,622,1246,37,1285,661,349,973,193,1441,817,505,1344,720,408,1032,252,1500,876,564,1188,57,1305,681,369,993,213,1461,837,525,1149,135,1383,759,447,1071,291,915,603,1227,18,1266,642,330,954,174,1422,798,486,1110,96,418,1042,262,1510,886,574,1198,67,1315,691,379,1003,223,1471,847,535,1159,145,1393,769,457,1081,301,925,613,1237,28,1276,652,340,964,184,1432,808,496,1120,106,1354,730,242,1490,866,554,1178,47,1295,671,359,983,203,1451,827,515,1139,125,1373,749,437,1061,281,905,593,1217,8,1256,632,320,944,164,1412,788,476,1100,86,1334,710,398,1022,891,579,1203,72,1320,696,384,1008,228,1476,852,540,1164,150,1398,774,462,1086,306,930,618,1242,33,1281,657,345,969,189,1437,813,501,1125,111,1359,735,423,1047,267,1515,1183,52,1300,676,364,988,208,1456,832,520,1144,130,1378,754,442,1066,286,910,598,1222,13,1261,637,325,949,169,1417,793,481,1105,91,1339,715,403,1027,247,1495,871,559,1310,686,374,998,218,1466,842,530,1154,140,1388,764,452,1076,296,920,608,1232,23,1271,647,335,959,179,1427,803,491,1115,101,1349,725,413,1037,257,1505,881,569,1193,62,354,978,198,1446,822,510,1134,120,1368,744,432,1056,276,900,588,1212,1209,1251,627,315,939,159,1407,783,471,1095,81,1329,705,393,1017,237,1485,861,549,1173,42,1290,666,230,1478,854,542,1166,152,1400,776,464,1088,308,932,620,1244,35,1283,659,347,971,191,1439,815,503,1127,113,1361,737,425,1049,269,1517,893,581,1205,74,1322,698,386,1010,834,522,1146,132,1380,756,444,1068,288,912,600,1224,15,1263,639,327,951,171,1419,795,483,1107,93,1341,717,405,1029,249,1497,873,561,1185,54,1302,678,366,990,210,1458,1156,142,1390,766,454,1078,298,922,610,1234,25,1273,649,337,961,181,1429,805,493,1117,103,1351,727,415,1039,259,1507,883,571,1195,64,1312,688,376,1e3,220,1468,844,532,1370,746,434,1058,278,902,590,1214,5,1253,629,317,941,161,1409,785,473,1097,83,1331,707,395,1019,239,1487,863,551,1175,44,1292,668,356,980,200,1448,824,512,1136,122,459,1083,303,927,615,1239,30,1278,654,342,966,186,1434,810,498,1122,108,1356,732,420,1044,264,1512,888,576,1200,69,1317,693,381,1005,225,1473,849,537,1161,147,1395,771,283,907,595,1219,10,1258,634,322,946,166,1414,790,478,1102,88,1336,712,400,1024,244,1492,868,556,1180,49,1297,673,361,985,205,1453,829,517,1141,127,1375,751,439,1063,605,1229,20,1268,644,332,956,176,1424,800,488,1112,98,1346,722,410,1034,254,1502,878,566,1190,59,1307,683,371,995,215,1463,839,527,1151,137,1385,761,449,1073,293,917,0,1248,624,312,936,156,1404,780,468,1092,78,1326,702,390,1014,234,1482,858,546,1170,39,1287,663,351,975,195,1443,819,507,1131,117,1365,741,429,1053,273,897,585,3],[2,332,1644,988,168,1480,824,496,1152,86,1398,742,414,1070,250,1562,906,578,1234,45,1357,701,373,1029,209,1521,865,537,1193,127,1439,783,455,1111,291,1603,947,619,1275,4,1,1677,1021,201,1513,857,529,1185,119,1431,775,447,1103,283,1595,939,611,1267,78,1390,734,406,1062,242,1554,898,570,1226,160,1472,816,488,1144,324,1636,980,652,1308,37,1349,693,365,181,1493,837,509,1165,99,1411,755,427,1083,263,1575,919,591,1247,58,1370,714,386,1042,222,1534,878,550,1206,140,1452,796,468,1124,304,1616,960,632,1288,17,1329,673,345,1657,1001,847,519,1175,109,1421,765,437,1093,273,1585,929,601,1257,68,1380,724,396,1052,232,1544,888,560,1216,150,1462,806,478,1134,314,1626,970,642,1298,27,1339,683,355,1667,1011,191,1503,1155,89,1401,745,417,1073,253,1565,909,581,1237,48,1360,704,376,1032,212,1524,868,540,1196,130,1442,786,458,1114,294,1606,950,622,1278,7,1319,663,335,1647,991,171,1483,827,499,1426,770,442,1098,278,1590,934,606,1262,73,1385,729,401,1057,237,1549,893,565,1221,155,1467,811,483,1139,319,1631,975,647,1303,32,1344,688,360,1672,1016,196,1508,852,524,1180,114,422,1078,258,1570,914,586,1242,53,1365,709,381,1037,217,1529,873,545,1201,135,1447,791,463,1119,299,1611,955,627,1283,12,1324,668,340,1652,996,176,1488,832,504,1160,94,1406,750,268,1580,924,596,1252,63,1375,719,391,1047,227,1539,883,555,1211,145,1457,801,473,1129,309,1621,965,637,1293,22,1334,678,350,1662,1006,186,1498,842,514,1170,104,1416,760,432,1088,903,575,1231,42,1354,698,370,1026,206,1518,862,534,1190,124,1436,780,452,1108,288,1600,944,616,1272,1316,1313,657,329,1641,985,165,1477,821,493,1149,83,1395,739,411,1067,247,1559,1270,81,1393,737,409,1065,245,1557,901,573,1229,163,1475,819,491,1147,327,1639,983,655,1311,40,1352,696,368,1680,1024,204,1516,860,532,1188,122,1434,778,450,1106,286,1598,942,614,1373,717,389,1045,225,1537,881,553,1209,143,1455,799,471,1127,307,1619,963,635,1291,20,1332,676,348,1660,1004,184,1496,840,512,1168,102,1414,758,430,1086,266,1578,922,594,1250,61,399,1055,235,1547,891,563,1219,153,1465,809,481,1137,317,1629,973,645,1301,30,1342,686,358,1670,1014,194,1506,850,522,1178,112,1424,768,440,1096,276,1588,932,604,1260,71,1383,727,215,1527,871,543,1199,133,1445,789,461,1117,297,1609,953,625,1281,10,1322,666,338,1650,994,174,1486,830,502,1158,92,1404,748,420,1076,256,1568,912,584,1240,51,1363,707,379,1035,896,568,1224,158,1470,814,486,1142,322,1634,978,650,1306,35,1347,691,363,1675,1019,199,1511,855,527,1183,117,1429,773,445,1101,281,1593,937,609,1265,76,1388,732,404,1060,240,1552,1204,138,1450,794,466,1122,302,1614,958,630,1286,15,1327,671,343,1655,999,179,1491,835,507,1163,97,1409,753,425,1081,261,1573,917,589,1245,56,1368,712,384,1040,220,1532,876,548,1460,804,476,1132,312,1624,968,640,1296,25,1337,681,353,1665,1009,189,1501,845,517,1173,107,1419,763,435,1091,271,1583,927,599,1255,66,1378,722,394,1050,230,1542,886,558,1214,148,456,1112,292,1604,948,620,1276,5,1317,661,333,1645,989,169,1481,825,497,1153,87,1399,743,415,1071,251,1563,907,579,1235,46,1358,702,374,1030,210,1522,866,538,1194,128,1440,784,325,1637,981,653,1309,38,1350,694,366,1678,1022,202,1514,858,530,1186,120,1432,776,448,1104,284,1596,940,612,1268,79,1391,735,407,1063,243,1555,899,571,1227,161,1473,817,489,1145,961,633,1289,18,1330,674,346,1658,1002,182,1494,838,510,1166,100,1412,756,428,1084,264,1576,920,592,1248,59,1371,715,387,1043,223,1535,879,551,1207,141,1453,797,469,1125,305,1617,1299,28,1340,684,356,1668,1012,192,1504,848,520,1176,110,1422,766,438,1094,274,1586,930,602,1258,69,1381,725,397,1053,233,1545,889,561,1217,151,1463,807,479,1135,315,1627,971,643,1320,664,336,1648,992,172,1484,828,500,1156,90,1402,746,418,1074,254,1566,910,582,1238,49,1361,705,377,1033,213,1525,869,541,1197,131,1443,787,459,1115,295,1607,951,623,1279,8,361,1673,1017,197,1509,853,525,1181,115,1427,771,443,1099,279,1591,935,607,1263,74,1386,730,402,1058,238,1550,894,566,1222,156,1468,812,484,1140,320,1632,976,648,1304,33,1345,689,997,177,1489,833,505,1161,95,1407,751,423,1079,259,1571,915,587,1243,54,1366,710,382,1038,218,1530,874,546,1202,136,1448,792,464,1120,300,1612,956,628,1284,13,1325,669,341,1653,1499,843,515,1171,105,1417,761,433,1089,269,1581,925,597,1253,64,1376,720,392,1048,228,1540,884,556,1212,146,1458,802,474,1130,310,1622,966,638,1294,23,1335,679,351,1663,1007,187,494,1150,84,1396,740,412,1068,248,1560,904,576,1232,43,1355,699,371,1027,207,1519,863,535,1191,125,1437,781,453,1109,289,1601,945,617,1273,660,1314,658,330,1642,986,166,1478,822,121,1433,777,449,1105,285,1597,941,613,1269,80,1392,736,408,1064,244,1556,900,572,1228,162,1474,818,490,1146,326,1638,982,654,1310,39,1351,695,367,1679,1023,203,1515,859,531,1187,757,429,1085,265,1577,921,593,1249,60,1372,716,388,1044,224,1536,880,552,1208,142,1454,798,470,1126,306,1618,962,634,1290,19,1331,675,347,1659,1003,183,1495,839,511,1167,101,1413,1095,275,1587,931,603,1259,70,1382,726,398,1054,234,1546,890,562,1218,152,1464,808,480,1136,316,1628,972,644,1300,29,1341,685,357,1669,1013,193,1505,849,521,1177,111,1423,767,439,1567,911,583,1239,50,1362,706,378,1034,214,1526,870,542,1198,132,1444,788,460,1116,296,1608,952,624,1280,9,1321,665,337,1649,993,173,1485,829,501,1157,91,1403,747,419,1075,255,608,1264,75,1387,731,403,1059,239,1551,895,567,1223,157,1469,813,485,1141,321,1633,977,649,1305,34,1346,690,362,1674,1018,198,1510,854,526,1182,116,1428,772,444,1100,280,1592,936,55,1367,711,383,1039,219,1531,875,547,1203,137,1449,793,465,1121,301,1613,957,629,1285,14,1326,670,342,1654,998,178,1490,834,506,1162,96,1408,752,424,1080,260,1572,916,588,1244,721,393,1049,229,1541,885,557,1213,147,1459,803,475,1131,311,1623,967,639,1295,24,1336,680,352,1664,1008,188,1500,844,516,1172,106,1418,762,434,1090,270,1582,926,598,1254,65,1377,1028,208,1520,864,536,1192,126,1438,782,454,1110,290,1602,946,618,1274,1271,1315,659,331,1643,987,167,1479,823,495,1151,85,1397,741,413,1069,249,1561,905,577,1233,44,1356,700,372,1553,897,569,1225,159,1471,815,487,1143,323,1635,979,651,1307,36,1348,692,364,1676,1020,200,1512,856,528,1184,118,1430,774,446,1102,282,1594,938,610,1266,77,1389,733,405,1061,241,549,1205,139,1451,795,467,1123,303,1615,959,631,1287,16,1328,672,344,1656,1e3,180,1492,836,508,1164,98,1410,754,426,1082,262,1574,918,590,1246,57,1369,713,385,1041,221,1533,877,149,1461,805,477,1133,313,1625,969,641,1297,26,1338,682,354,1666,1010,190,1502,846,518,1174,108,1420,764,436,1092,272,1584,928,600,1256,67,1379,723,395,1051,231,1543,887,559,1215,785,457,1113,293,1605,949,621,1277,6,1318,662,334,1646,990,170,1482,826,498,1154,88,1400,744,416,1072,252,1564,908,580,1236,47,1359,703,375,1031,211,1523,867,539,1195,129,1441,1138,318,1630,974,646,1302,31,1343,687,359,1671,1015,195,1507,851,523,1179,113,1425,769,441,1097,277,1589,933,605,1261,72,1384,728,400,1056,236,1548,892,564,1220,154,1466,810,482,1610,954,626,1282,11,1323,667,339,1651,995,175,1487,831,503,1159,93,1405,749,421,1077,257,1569,913,585,1241,52,1364,708,380,1036,216,1528,872,544,1200,134,1446,790,462,1118,298,636,1292,21,1333,677,349,1661,1005,185,1497,841,513,1169,103,1415,759,431,1087,267,1579,923,595,1251,62,1374,718,390,1046,226,1538,882,554,1210,144,1456,800,472,1128,308,1620,964,0,1312,656,328,1640,984,164,1476,820,492,1148,82,1394,738,410,1066,246,1558,902,574,1230,41,1353,697,369,1025,205,1517,861,533,1189,123,1435,779,451,1107,287,1599,943,615,3],[2,359,1735,1047,187,1563,875,531,1219,101,1477,789,445,1821,1133,273,1649,961,617,1305,58,1434,746,402,1778,1090,230,1606,918,574,1262,144,1520,832,488,1176,316,1692,1004,660,1348,15,1,1746,1058,198,1574,886,542,1230,112,1488,800,456,1832,1144,284,1660,972,628,1316,69,1445,757,413,1789,1101,241,1617,929,585,1273,155,1531,843,499,1187,327,1703,1015,671,1359,26,1402,714,370,176,1552,864,520,1208,90,1466,778,434,1810,1122,262,1638,950,606,1294,47,1423,735,391,1767,1079,219,1595,907,563,1251,133,1509,821,477,1165,305,1681,993,649,1337,4,1380,692,348,1724,1036,899,555,1243,125,1501,813,469,1845,1157,297,1673,985,641,1329,82,1458,770,426,1802,1114,254,1630,942,598,1286,168,1544,856,512,1200,340,1716,1028,684,1372,39,1415,727,383,1759,1071,211,1587,1222,104,1480,792,448,1824,1136,276,1652,964,620,1308,61,1437,749,405,1781,1093,233,1609,921,577,1265,147,1523,835,491,1179,319,1695,1007,663,1351,18,1394,706,362,1738,1050,190,1566,878,534,1491,803,459,1835,1147,287,1663,975,631,1319,72,1448,760,416,1792,1104,244,1620,932,588,1276,158,1534,846,502,1190,330,1706,1018,674,1362,29,1405,717,373,1749,1061,201,1577,889,545,1233,115,437,1813,1125,265,1641,953,609,1297,50,1426,738,394,1770,1082,222,1598,910,566,1254,136,1512,824,480,1168,308,1684,996,652,1340,7,1383,695,351,1727,1039,179,1555,867,523,1211,93,1469,781,1152,292,1668,980,636,1324,77,1453,765,421,1797,1109,249,1625,937,593,1281,163,1539,851,507,1195,335,1711,1023,679,1367,34,1410,722,378,1754,1066,206,1582,894,550,1238,120,1496,808,464,1840,1646,958,614,1302,55,1431,743,399,1775,1087,227,1603,915,571,1259,141,1517,829,485,1173,313,1689,1001,657,1345,12,1388,700,356,1732,1044,184,1560,872,528,1216,98,1474,786,442,1818,1130,270,625,1313,66,1442,754,410,1786,1098,238,1614,926,582,1270,152,1528,840,496,1184,324,1700,1012,668,1356,23,1399,711,367,1743,1055,195,1571,883,539,1227,109,1485,797,453,1829,1141,281,1657,969,44,1420,732,388,1764,1076,216,1592,904,560,1248,130,1506,818,474,1162,302,1678,990,646,1334,1391,1377,689,345,1721,1033,173,1549,861,517,1205,87,1463,775,431,1807,1119,259,1635,947,603,1291,773,429,1805,1117,257,1633,945,601,1289,171,1547,859,515,1203,343,1719,1031,687,1375,42,1418,730,386,1762,1074,214,1590,902,558,1246,128,1504,816,472,1848,1160,300,1676,988,644,1332,85,1461,1784,1096,236,1612,924,580,1268,150,1526,838,494,1182,322,1698,1010,666,1354,21,1397,709,365,1741,1053,193,1569,881,537,1225,107,1483,795,451,1827,1139,279,1655,967,623,1311,64,1440,752,408,247,1623,935,591,1279,161,1537,849,505,1193,333,1709,1021,677,1365,32,1408,720,376,1752,1064,204,1580,892,548,1236,118,1494,806,462,1838,1150,290,1666,978,634,1322,75,1451,763,419,1795,1107,913,569,1257,139,1515,827,483,1171,311,1687,999,655,1343,10,1386,698,354,1730,1042,182,1558,870,526,1214,96,1472,784,440,1816,1128,268,1644,956,612,1300,53,1429,741,397,1773,1085,225,1601,1284,166,1542,854,510,1198,338,1714,1026,682,1370,37,1413,725,381,1757,1069,209,1585,897,553,1241,123,1499,811,467,1843,1155,295,1671,983,639,1327,80,1456,768,424,1800,1112,252,1628,940,596,1521,833,489,1177,317,1693,1005,661,1349,16,1392,704,360,1736,1048,188,1564,876,532,1220,102,1478,790,446,1822,1134,274,1650,962,618,1306,59,1435,747,403,1779,1091,231,1607,919,575,1263,145,500,1188,328,1704,1016,672,1360,27,1403,715,371,1747,1059,199,1575,887,543,1231,113,1489,801,457,1833,1145,285,1661,973,629,1317,70,1446,758,414,1790,1102,242,1618,930,586,1274,156,1532,844,306,1682,994,650,1338,5,1381,693,349,1725,1037,177,1553,865,521,1209,91,1467,779,435,1811,1123,263,1639,951,607,1295,48,1424,736,392,1768,1080,220,1596,908,564,1252,134,1510,822,478,1166,1029,685,1373,40,1416,728,384,1760,1072,212,1588,900,556,1244,126,1502,814,470,1846,1158,298,1674,986,642,1330,83,1459,771,427,1803,1115,255,1631,943,599,1287,169,1545,857,513,1201,341,1717,1352,19,1395,707,363,1739,1051,191,1567,879,535,1223,105,1481,793,449,1825,1137,277,1653,965,621,1309,62,1438,750,406,1782,1094,234,1610,922,578,1266,148,1524,836,492,1180,320,1696,1008,664,1406,718,374,1750,1062,202,1578,890,546,1234,116,1492,804,460,1836,1148,288,1664,976,632,1320,73,1449,761,417,1793,1105,245,1621,933,589,1277,159,1535,847,503,1191,331,1707,1019,675,1363,30,352,1728,1040,180,1556,868,524,1212,94,1470,782,438,1814,1126,266,1642,954,610,1298,51,1427,739,395,1771,1083,223,1599,911,567,1255,137,1513,825,481,1169,309,1685,997,653,1341,8,1384,696,1067,207,1583,895,551,1239,121,1497,809,465,1841,1153,293,1669,981,637,1325,78,1454,766,422,1798,1110,250,1626,938,594,1282,164,1540,852,508,1196,336,1712,1024,680,1368,35,1411,723,379,1755,1561,873,529,1217,99,1475,787,443,1819,1131,271,1647,959,615,1303,56,1432,744,400,1776,1088,228,1604,916,572,1260,142,1518,830,486,1174,314,1690,1002,658,1346,13,1389,701,357,1733,1045,185,540,1228,110,1486,798,454,1830,1142,282,1658,970,626,1314,67,1443,755,411,1787,1099,239,1615,927,583,1271,153,1529,841,497,1185,325,1701,1013,669,1357,24,1400,712,368,1744,1056,196,1572,884,88,1464,776,432,1808,1120,260,1636,948,604,1292,45,1421,733,389,1765,1077,217,1593,905,561,1249,131,1507,819,475,1163,303,1679,991,647,1335,703,1378,690,346,1722,1034,174,1550,862,518,1206,815,471,1847,1159,299,1675,987,643,1331,84,1460,772,428,1804,1116,256,1632,944,600,1288,170,1546,858,514,1202,342,1718,1030,686,1374,41,1417,729,385,1761,1073,213,1589,901,557,1245,127,1503,1826,1138,278,1654,966,622,1310,63,1439,751,407,1783,1095,235,1611,923,579,1267,149,1525,837,493,1181,321,1697,1009,665,1353,20,1396,708,364,1740,1052,192,1568,880,536,1224,106,1482,794,450,289,1665,977,633,1321,74,1450,762,418,1794,1106,246,1622,934,590,1278,160,1536,848,504,1192,332,1708,1020,676,1364,31,1407,719,375,1751,1063,203,1579,891,547,1235,117,1493,805,461,1837,1149,955,611,1299,52,1428,740,396,1772,1084,224,1600,912,568,1256,138,1514,826,482,1170,310,1686,998,654,1342,9,1385,697,353,1729,1041,181,1557,869,525,1213,95,1471,783,439,1815,1127,267,1643,1326,79,1455,767,423,1799,1111,251,1627,939,595,1283,165,1541,853,509,1197,337,1713,1025,681,1369,36,1412,724,380,1756,1068,208,1584,896,552,1240,122,1498,810,466,1842,1154,294,1670,982,638,1433,745,401,1777,1089,229,1605,917,573,1261,143,1519,831,487,1175,315,1691,1003,659,1347,14,1390,702,358,1734,1046,186,1562,874,530,1218,100,1476,788,444,1820,1132,272,1648,960,616,1304,57,412,1788,1100,240,1616,928,584,1272,154,1530,842,498,1186,326,1702,1014,670,1358,25,1401,713,369,1745,1057,197,1573,885,541,1229,111,1487,799,455,1831,1143,283,1659,971,627,1315,68,1444,756,1078,218,1594,906,562,1250,132,1508,820,476,1164,304,1680,992,648,1336,1333,1379,691,347,1723,1035,175,1551,863,519,1207,89,1465,777,433,1809,1121,261,1637,949,605,1293,46,1422,734,390,1766,1629,941,597,1285,167,1543,855,511,1199,339,1715,1027,683,1371,38,1414,726,382,1758,1070,210,1586,898,554,1242,124,1500,812,468,1844,1156,296,1672,984,640,1328,81,1457,769,425,1801,1113,253,576,1264,146,1522,834,490,1178,318,1694,1006,662,1350,17,1393,705,361,1737,1049,189,1565,877,533,1221,103,1479,791,447,1823,1135,275,1651,963,619,1307,60,1436,748,404,1780,1092,232,1608,920,157,1533,845,501,1189,329,1705,1017,673,1361,28,1404,716,372,1748,1060,200,1576,888,544,1232,114,1490,802,458,1834,1146,286,1662,974,630,1318,71,1447,759,415,1791,1103,243,1619,931,587,1275,823,479,1167,307,1683,995,651,1339,6,1382,694,350,1726,1038,178,1554,866,522,1210,92,1468,780,436,1812,1124,264,1640,952,608,1296,49,1425,737,393,1769,1081,221,1597,909,565,1253,135,1511,1194,334,1710,1022,678,1366,33,1409,721,377,1753,1065,205,1581,893,549,1237,119,1495,807,463,1839,1151,291,1667,979,635,1323,76,1452,764,420,1796,1108,248,1624,936,592,1280,162,1538,850,506,1688,1e3,656,1344,11,1387,699,355,1731,1043,183,1559,871,527,1215,97,1473,785,441,1817,1129,269,1645,957,613,1301,54,1430,742,398,1774,1086,226,1602,914,570,1258,140,1516,828,484,1172,312,667,1355,22,1398,710,366,1742,1054,194,1570,882,538,1226,108,1484,796,452,1828,1140,280,1656,968,624,1312,65,1441,753,409,1785,1097,237,1613,925,581,1269,151,1527,839,495,1183,323,1699,1011,0,1376,688,344,1720,1032,172,1548,860,516,1204,86,1462,774,430,1806,1118,258,1634,946,602,1290,43,1419,731,387,1763,1075,215,1591,903,559,1247,129,1505,817,473,1161,301,1677,989,645,3],[2,370,1810,1090,190,1630,910,550,1990,1270,100,1540,820,460,1900,1180,280,1720,1e3,640,1360,55,1495,775,415,1855,1135,235,1675,955,595,1315,145,1585,865,505,1945,1225,325,1765,1045,685,1405,10,1,1838,1118,218,1658,938,578,2018,1298,128,1568,848,488,1928,1208,308,1748,1028,668,1388,83,1523,803,443,1883,1163,263,1703,983,623,1343,173,1613,893,533,1973,1253,353,1793,1073,713,1433,38,1478,758,398,196,1636,916,556,1996,1276,106,1546,826,466,1906,1186,286,1726,1006,646,1366,61,1501,781,421,1861,1141,241,1681,961,601,1321,151,1591,871,511,1951,1231,331,1771,1051,691,1411,16,1456,736,376,1816,1096,927,567,2007,1287,117,1557,837,477,1917,1197,297,1737,1017,657,1377,72,1512,792,432,1872,1152,252,1692,972,612,1332,162,1602,882,522,1962,1242,342,1782,1062,702,1422,27,1467,747,387,1827,1107,207,1647,1984,1264,94,1534,814,454,1894,1174,274,1714,994,634,1354,49,1489,769,409,1849,1129,229,1669,949,589,1309,139,1579,859,499,1939,1219,319,1759,1039,679,1399,4,1444,724,364,1804,1084,184,1624,904,544,131,1571,851,491,1931,1211,311,1751,1031,671,1391,86,1526,806,446,1886,1166,266,1706,986,626,1346,176,1616,896,536,1976,1256,356,1796,1076,716,1436,41,1481,761,401,1841,1121,221,1661,941,581,2021,1301,829,469,1909,1189,289,1729,1009,649,1369,64,1504,784,424,1864,1144,244,1684,964,604,1324,154,1594,874,514,1954,1234,334,1774,1054,694,1414,19,1459,739,379,1819,1099,199,1639,919,559,1999,1279,109,1549,1920,1200,300,1740,1020,660,1380,75,1515,795,435,1875,1155,255,1695,975,615,1335,165,1605,885,525,1965,1245,345,1785,1065,705,1425,30,1470,750,390,1830,1110,210,1650,930,570,2010,1290,120,1560,840,480,277,1717,997,637,1357,52,1492,772,412,1852,1132,232,1672,952,592,1312,142,1582,862,502,1942,1222,322,1762,1042,682,1402,7,1447,727,367,1807,1087,187,1627,907,547,1987,1267,97,1537,817,457,1897,1177,1025,665,1385,80,1520,800,440,1880,1160,260,1700,980,620,1340,170,1610,890,530,1970,1250,350,1790,1070,710,1430,35,1475,755,395,1835,1115,215,1655,935,575,2015,1295,125,1565,845,485,1925,1205,305,1745,1363,58,1498,778,418,1858,1138,238,1678,958,598,1318,148,1588,868,508,1948,1228,328,1768,1048,688,1408,13,1453,733,373,1813,1093,193,1633,913,553,1993,1273,103,1543,823,463,1903,1183,283,1723,1003,643,1509,789,429,1869,1149,249,1689,969,609,1329,159,1599,879,519,1959,1239,339,1779,1059,699,1419,24,1464,744,384,1824,1104,204,1644,924,564,2004,1284,114,1554,834,474,1914,1194,294,1734,1014,654,1374,69,406,1846,1126,226,1666,946,586,1306,136,1576,856,496,1936,1216,316,1756,1036,676,1396,1450,1441,721,361,1801,1081,181,1621,901,541,1981,1261,91,1531,811,451,1891,1171,271,1711,991,631,1351,46,1486,766,1169,269,1709,989,629,1349,179,1619,899,539,1979,1259,359,1799,1079,719,1439,44,1484,764,404,1844,1124,224,1664,944,584,2024,1304,134,1574,854,494,1934,1214,314,1754,1034,674,1394,89,1529,809,449,1889,1687,967,607,1327,157,1597,877,517,1957,1237,337,1777,1057,697,1417,22,1462,742,382,1822,1102,202,1642,922,562,2002,1282,112,1552,832,472,1912,1192,292,1732,1012,652,1372,67,1507,787,427,1867,1147,247,618,1338,168,1608,888,528,1968,1248,348,1788,1068,708,1428,33,1473,753,393,1833,1113,213,1653,933,573,2013,1293,123,1563,843,483,1923,1203,303,1743,1023,663,1383,78,1518,798,438,1878,1158,258,1698,978,146,1586,866,506,1946,1226,326,1766,1046,686,1406,11,1451,731,371,1811,1091,191,1631,911,551,1991,1271,101,1541,821,461,1901,1181,281,1721,1001,641,1361,56,1496,776,416,1856,1136,236,1676,956,596,1316,894,534,1974,1254,354,1794,1074,714,1434,39,1479,759,399,1839,1119,219,1659,939,579,2019,1299,129,1569,849,489,1929,1209,309,1749,1029,669,1389,84,1524,804,444,1884,1164,264,1704,984,624,1344,174,1614,1952,1232,332,1772,1052,692,1412,17,1457,737,377,1817,1097,197,1637,917,557,1997,1277,107,1547,827,467,1907,1187,287,1727,1007,647,1367,62,1502,782,422,1862,1142,242,1682,962,602,1322,152,1592,872,512,343,1783,1063,703,1423,28,1468,748,388,1828,1108,208,1648,928,568,2008,1288,118,1558,838,478,1918,1198,298,1738,1018,658,1378,73,1513,793,433,1873,1153,253,1693,973,613,1333,163,1603,883,523,1963,1243,1040,680,1400,5,1445,725,365,1805,1085,185,1625,905,545,1985,1265,95,1535,815,455,1895,1175,275,1715,995,635,1355,50,1490,770,410,1850,1130,230,1670,950,590,1310,140,1580,860,500,1940,1220,320,1760,1437,42,1482,762,402,1842,1122,222,1662,942,582,2022,1302,132,1572,852,492,1932,1212,312,1752,1032,672,1392,87,1527,807,447,1887,1167,267,1707,987,627,1347,177,1617,897,537,1977,1257,357,1797,1077,717,1460,740,380,1820,1100,200,1640,920,560,2e3,1280,110,1550,830,470,1910,1190,290,1730,1010,650,1370,65,1505,785,425,1865,1145,245,1685,965,605,1325,155,1595,875,515,1955,1235,335,1775,1055,695,1415,20,391,1831,1111,211,1651,931,571,2011,1291,121,1561,841,481,1921,1201,301,1741,1021,661,1381,76,1516,796,436,1876,1156,256,1696,976,616,1336,166,1606,886,526,1966,1246,346,1786,1066,706,1426,31,1471,751,1088,188,1628,908,548,1988,1268,98,1538,818,458,1898,1178,278,1718,998,638,1358,53,1493,773,413,1853,1133,233,1673,953,593,1313,143,1583,863,503,1943,1223,323,1763,1043,683,1403,8,1448,728,368,1808,1656,936,576,2016,1296,126,1566,846,486,1926,1206,306,1746,1026,666,1386,81,1521,801,441,1881,1161,261,1701,981,621,1341,171,1611,891,531,1971,1251,351,1791,1071,711,1431,36,1476,756,396,1836,1116,216,554,1994,1274,104,1544,824,464,1904,1184,284,1724,1004,644,1364,59,1499,779,419,1859,1139,239,1679,959,599,1319,149,1589,869,509,1949,1229,329,1769,1049,689,1409,14,1454,734,374,1814,1094,194,1634,914,1285,115,1555,835,475,1915,1195,295,1735,1015,655,1375,70,1510,790,430,1870,1150,250,1690,970,610,1330,160,1600,880,520,1960,1240,340,1780,1060,700,1420,25,1465,745,385,1825,1105,205,1645,925,565,2005,1532,812,452,1892,1172,272,1712,992,632,1352,47,1487,767,407,1847,1127,227,1667,947,587,1307,137,1577,857,497,1937,1217,317,1757,1037,677,1397,730,1442,722,362,1802,1082,182,1622,902,542,1982,1262,92,493,1933,1213,313,1753,1033,673,1393,88,1528,808,448,1888,1168,268,1708,988,628,1348,178,1618,898,538,1978,1258,358,1798,1078,718,1438,43,1483,763,403,1843,1123,223,1663,943,583,2023,1303,133,1573,853,1191,291,1731,1011,651,1371,66,1506,786,426,1866,1146,246,1686,966,606,1326,156,1596,876,516,1956,1236,336,1776,1056,696,1416,21,1461,741,381,1821,1101,201,1641,921,561,2001,1281,111,1551,831,471,1911,1742,1022,662,1382,77,1517,797,437,1877,1157,257,1697,977,617,1337,167,1607,887,527,1967,1247,347,1787,1067,707,1427,32,1472,752,392,1832,1112,212,1652,932,572,2012,1292,122,1562,842,482,1922,1202,302,639,1359,54,1494,774,414,1854,1134,234,1674,954,594,1314,144,1584,864,504,1944,1224,324,1764,1044,684,1404,9,1449,729,369,1809,1089,189,1629,909,549,1989,1269,99,1539,819,459,1899,1179,279,1719,999,82,1522,802,442,1882,1162,262,1702,982,622,1342,172,1612,892,532,1972,1252,352,1792,1072,712,1432,37,1477,757,397,1837,1117,217,1657,937,577,2017,1297,127,1567,847,487,1927,1207,307,1747,1027,667,1387,780,420,1860,1140,240,1680,960,600,1320,150,1590,870,510,1950,1230,330,1770,1050,690,1410,15,1455,735,375,1815,1095,195,1635,915,555,1995,1275,105,1545,825,465,1905,1185,285,1725,1005,645,1365,60,1500,1871,1151,251,1691,971,611,1331,161,1601,881,521,1961,1241,341,1781,1061,701,1421,26,1466,746,386,1826,1106,206,1646,926,566,2006,1286,116,1556,836,476,1916,1196,296,1736,1016,656,1376,71,1511,791,431,228,1668,948,588,1308,138,1578,858,498,1938,1218,318,1758,1038,678,1398,1395,1443,723,363,1803,1083,183,1623,903,543,1983,1263,93,1533,813,453,1893,1173,273,1713,993,633,1353,48,1488,768,408,1848,1128,985,625,1345,175,1615,895,535,1975,1255,355,1795,1075,715,1435,40,1480,760,400,1840,1120,220,1660,940,580,2020,1300,130,1570,850,490,1930,1210,310,1750,1030,670,1390,85,1525,805,445,1885,1165,265,1705,1323,153,1593,873,513,1953,1233,333,1773,1053,693,1413,18,1458,738,378,1818,1098,198,1638,918,558,1998,1278,108,1548,828,468,1908,1188,288,1728,1008,648,1368,63,1503,783,423,1863,1143,243,1683,963,603,1604,884,524,1964,1244,344,1784,1064,704,1424,29,1469,749,389,1829,1109,209,1649,929,569,2009,1289,119,1559,839,479,1919,1199,299,1739,1019,659,1379,74,1514,794,434,1874,1154,254,1694,974,614,1334,164,501,1941,1221,321,1761,1041,681,1401,6,1446,726,366,1806,1086,186,1626,906,546,1986,1266,96,1536,816,456,1896,1176,276,1716,996,636,1356,51,1491,771,411,1851,1131,231,1671,951,591,1311,141,1581,861,1249,349,1789,1069,709,1429,34,1474,754,394,1834,1114,214,1654,934,574,2014,1294,124,1564,844,484,1924,1204,304,1744,1024,664,1384,79,1519,799,439,1879,1159,259,1699,979,619,1339,169,1609,889,529,1969,1767,1047,687,1407,12,1452,732,372,1812,1092,192,1632,912,552,1992,1272,102,1542,822,462,1902,1182,282,1722,1002,642,1362,57,1497,777,417,1857,1137,237,1677,957,597,1317,147,1587,867,507,1947,1227,327,698,1418,23,1463,743,383,1823,1103,203,1643,923,563,2003,1283,113,1553,833,473,1913,1193,293,1733,1013,653,1373,68,1508,788,428,1868,1148,248,1688,968,608,1328,158,1598,878,518,1958,1238,338,1778,1058,0,1440,720,360,1800,1080,180,1620,900,540,1980,1260,90,1530,810,450,1890,1170,270,1710,990,630,1350,45,1485,765,405,1845,1125,225,1665,945,585,1305,135,1575,855,495,1935,1215,315,1755,1035,675,3],[2,398,1902,1150,210,1714,962,586,2090,1338,116,1620,868,492,1996,1244,304,1808,1056,680,2184,1432,69,1573,821,445,1949,1197,257,1761,1009,633,2137,1385,163,1667,915,539,2043,1291,351,1855,1103,727,1479,22,1,1914,1162,222,1726,974,598,2102,1350,128,1632,880,504,2008,1256,316,1820,1068,692,2196,1444,81,1585,833,457,1961,1209,269,1773,1021,645,2149,1397,175,1679,927,551,2055,1303,363,1867,1115,739,1491,34,1538,786,410,198,1702,950,574,2078,1326,104,1608,856,480,1984,1232,292,1796,1044,668,2172,1420,57,1561,809,433,1937,1185,245,1749,997,621,2125,1373,151,1655,903,527,2031,1279,339,1843,1091,715,1467,10,1514,762,386,1890,1138,980,604,2108,1356,134,1638,886,510,2014,1262,322,1826,1074,698,2202,1450,87,1591,839,463,1967,1215,275,1779,1027,651,2155,1403,181,1685,933,557,2061,1309,369,1873,1121,745,1497,40,1544,792,416,1920,1168,228,1732,2084,1332,110,1614,862,486,1990,1238,298,1802,1050,674,2178,1426,63,1567,815,439,1943,1191,251,1755,1003,627,2131,1379,157,1661,909,533,2037,1285,345,1849,1097,721,1473,16,1520,768,392,1896,1144,204,1708,956,580,122,1626,874,498,2002,1250,310,1814,1062,686,2190,1438,75,1579,827,451,1955,1203,263,1767,1015,639,2143,1391,169,1673,921,545,2049,1297,357,1861,1109,733,1485,28,1532,780,404,1908,1156,216,1720,968,592,2096,1344,850,474,1978,1226,286,1790,1038,662,2166,1414,51,1555,803,427,1931,1179,239,1743,991,615,2119,1367,145,1649,897,521,2025,1273,333,1837,1085,709,1461,4,1508,756,380,1884,1132,192,1696,944,568,2072,1320,98,1602,2017,1265,325,1829,1077,701,2205,1453,90,1594,842,466,1970,1218,278,1782,1030,654,2158,1406,184,1688,936,560,2064,1312,372,1876,1124,748,1500,43,1547,795,419,1923,1171,231,1735,983,607,2111,1359,137,1641,889,513,301,1805,1053,677,2181,1429,66,1570,818,442,1946,1194,254,1758,1006,630,2134,1382,160,1664,912,536,2040,1288,348,1852,1100,724,1476,19,1523,771,395,1899,1147,207,1711,959,583,2087,1335,113,1617,865,489,1993,1241,1065,689,2193,1441,78,1582,830,454,1958,1206,266,1770,1018,642,2146,1394,172,1676,924,548,2052,1300,360,1864,1112,736,1488,31,1535,783,407,1911,1159,219,1723,971,595,2099,1347,125,1629,877,501,2005,1253,313,1817,2169,1417,54,1558,806,430,1934,1182,242,1746,994,618,2122,1370,148,1652,900,524,2028,1276,336,1840,1088,712,1464,7,1511,759,383,1887,1135,195,1699,947,571,2075,1323,101,1605,853,477,1981,1229,289,1793,1041,665,84,1588,836,460,1964,1212,272,1776,1024,648,2152,1400,178,1682,930,554,2058,1306,366,1870,1118,742,1494,37,1541,789,413,1917,1165,225,1729,977,601,2105,1353,131,1635,883,507,2011,1259,319,1823,1071,695,2199,1447,812,436,1940,1188,248,1752,1e3,624,2128,1376,154,1658,906,530,2034,1282,342,1846,1094,718,1470,13,1517,765,389,1893,1141,201,1705,953,577,2081,1329,107,1611,859,483,1987,1235,295,1799,1047,671,2175,1423,60,1564,1952,1200,260,1764,1012,636,2140,1388,166,1670,918,542,2046,1294,354,1858,1106,730,1482,25,1529,777,401,1905,1153,213,1717,965,589,2093,1341,119,1623,871,495,1999,1247,307,1811,1059,683,2187,1435,72,1576,824,448,236,1740,988,612,2116,1364,142,1646,894,518,2022,1270,330,1834,1082,706,1458,1526,1505,753,377,1881,1129,189,1693,941,565,2069,1317,95,1599,847,471,1975,1223,283,1787,1035,659,2163,1411,48,1552,800,424,1928,1176,1033,657,2161,1409,187,1691,939,563,2067,1315,375,1879,1127,751,1503,46,1550,798,422,1926,1174,234,1738,986,610,2114,1362,140,1644,892,516,2020,1268,328,1832,1080,704,2208,1456,93,1597,845,469,1973,1221,281,1785,2138,1386,164,1668,916,540,2044,1292,352,1856,1104,728,1480,23,1527,775,399,1903,1151,211,1715,963,587,2091,1339,117,1621,869,493,1997,1245,305,1809,1057,681,2185,1433,70,1574,822,446,1950,1198,258,1762,1010,634,176,1680,928,552,2056,1304,364,1868,1116,740,1492,35,1539,787,411,1915,1163,223,1727,975,599,2103,1351,129,1633,881,505,2009,1257,317,1821,1069,693,2197,1445,82,1586,834,458,1962,1210,270,1774,1022,646,2150,1398,904,528,2032,1280,340,1844,1092,716,1468,11,1515,763,387,1891,1139,199,1703,951,575,2079,1327,105,1609,857,481,1985,1233,293,1797,1045,669,2173,1421,58,1562,810,434,1938,1186,246,1750,998,622,2126,1374,152,1656,2062,1310,370,1874,1122,746,1498,41,1545,793,417,1921,1169,229,1733,981,605,2109,1357,135,1639,887,511,2015,1263,323,1827,1075,699,2203,1451,88,1592,840,464,1968,1216,276,1780,1028,652,2156,1404,182,1686,934,558,346,1850,1098,722,1474,17,1521,769,393,1897,1145,205,1709,957,581,2085,1333,111,1615,863,487,1991,1239,299,1803,1051,675,2179,1427,64,1568,816,440,1944,1192,252,1756,1004,628,2132,1380,158,1662,910,534,2038,1286,1110,734,1486,29,1533,781,405,1909,1157,217,1721,969,593,2097,1345,123,1627,875,499,2003,1251,311,1815,1063,687,2191,1439,76,1580,828,452,1956,1204,264,1768,1016,640,2144,1392,170,1674,922,546,2050,1298,358,1862,1462,5,1509,757,381,1885,1133,193,1697,945,569,2073,1321,99,1603,851,475,1979,1227,287,1791,1039,663,2167,1415,52,1556,804,428,1932,1180,240,1744,992,616,2120,1368,146,1650,898,522,2026,1274,334,1838,1086,710,1548,796,420,1924,1172,232,1736,984,608,2112,1360,138,1642,890,514,2018,1266,326,1830,1078,702,2206,1454,91,1595,843,467,1971,1219,279,1783,1031,655,2159,1407,185,1689,937,561,2065,1313,373,1877,1125,749,1501,44,396,1900,1148,208,1712,960,584,2088,1336,114,1618,866,490,1994,1242,302,1806,1054,678,2182,1430,67,1571,819,443,1947,1195,255,1759,1007,631,2135,1383,161,1665,913,537,2041,1289,349,1853,1101,725,1477,20,1524,772,1160,220,1724,972,596,2100,1348,126,1630,878,502,2006,1254,314,1818,1066,690,2194,1442,79,1583,831,455,1959,1207,267,1771,1019,643,2147,1395,173,1677,925,549,2053,1301,361,1865,1113,737,1489,32,1536,784,408,1912,1700,948,572,2076,1324,102,1606,854,478,1982,1230,290,1794,1042,666,2170,1418,55,1559,807,431,1935,1183,243,1747,995,619,2123,1371,149,1653,901,525,2029,1277,337,1841,1089,713,1465,8,1512,760,384,1888,1136,196,602,2106,1354,132,1636,884,508,2012,1260,320,1824,1072,696,2200,1448,85,1589,837,461,1965,1213,273,1777,1025,649,2153,1401,179,1683,931,555,2059,1307,367,1871,1119,743,1495,38,1542,790,414,1918,1166,226,1730,978,1330,108,1612,860,484,1988,1236,296,1800,1048,672,2176,1424,61,1565,813,437,1941,1189,249,1753,1001,625,2129,1377,155,1659,907,531,2035,1283,343,1847,1095,719,1471,14,1518,766,390,1894,1142,202,1706,954,578,2082,1624,872,496,2e3,1248,308,1812,1060,684,2188,1436,73,1577,825,449,1953,1201,261,1765,1013,637,2141,1389,167,1671,919,543,2047,1295,355,1859,1107,731,1483,26,1530,778,402,1906,1154,214,1718,966,590,2094,1342,120,472,1976,1224,284,1788,1036,660,2164,1412,49,1553,801,425,1929,1177,237,1741,989,613,2117,1365,143,1647,895,519,2023,1271,331,1835,1083,707,1459,774,1506,754,378,1882,1130,190,1694,942,566,2070,1318,96,1600,848,1267,327,1831,1079,703,2207,1455,92,1596,844,468,1972,1220,280,1784,1032,656,2160,1408,186,1690,938,562,2066,1314,374,1878,1126,750,1502,45,1549,797,421,1925,1173,233,1737,985,609,2113,1361,139,1643,891,515,2019,1807,1055,679,2183,1431,68,1572,820,444,1948,1196,256,1760,1008,632,2136,1384,162,1666,914,538,2042,1290,350,1854,1102,726,1478,21,1525,773,397,1901,1149,209,1713,961,585,2089,1337,115,1619,867,491,1995,1243,303,691,2195,1443,80,1584,832,456,1960,1208,268,1772,1020,644,2148,1396,174,1678,926,550,2054,1302,362,1866,1114,738,1490,33,1537,785,409,1913,1161,221,1725,973,597,2101,1349,127,1631,879,503,2007,1255,315,1819,1067,1419,56,1560,808,432,1936,1184,244,1748,996,620,2124,1372,150,1654,902,526,2030,1278,338,1842,1090,714,1466,9,1513,761,385,1889,1137,197,1701,949,573,2077,1325,103,1607,855,479,1983,1231,291,1795,1043,667,2171,1590,838,462,1966,1214,274,1778,1026,650,2154,1402,180,1684,932,556,2060,1308,368,1872,1120,744,1496,39,1543,791,415,1919,1167,227,1731,979,603,2107,1355,133,1637,885,509,2013,1261,321,1825,1073,697,2201,1449,86,438,1942,1190,250,1754,1002,626,2130,1378,156,1660,908,532,2036,1284,344,1848,1096,720,1472,15,1519,767,391,1895,1143,203,1707,955,579,2083,1331,109,1613,861,485,1989,1237,297,1801,1049,673,2177,1425,62,1566,814,1202,262,1766,1014,638,2142,1390,168,1672,920,544,2048,1296,356,1860,1108,732,1484,27,1531,779,403,1907,1155,215,1719,967,591,2095,1343,121,1625,873,497,2001,1249,309,1813,1061,685,2189,1437,74,1578,826,450,1954,1742,990,614,2118,1366,144,1648,896,520,2024,1272,332,1836,1084,708,1460,1457,1507,755,379,1883,1131,191,1695,943,567,2071,1319,97,1601,849,473,1977,1225,285,1789,1037,661,2165,1413,50,1554,802,426,1930,1178,238,653,2157,1405,183,1687,935,559,2063,1311,371,1875,1123,747,1499,42,1546,794,418,1922,1170,230,1734,982,606,2110,1358,136,1640,888,512,2016,1264,324,1828,1076,700,2204,1452,89,1593,841,465,1969,1217,277,1781,1029,1381,159,1663,911,535,2039,1287,347,1851,1099,723,1475,18,1522,770,394,1898,1146,206,1710,958,582,2086,1334,112,1616,864,488,1992,1240,300,1804,1052,676,2180,1428,65,1569,817,441,1945,1193,253,1757,1005,629,2133,1675,923,547,2051,1299,359,1863,1111,735,1487,30,1534,782,406,1910,1158,218,1722,970,594,2098,1346,124,1628,876,500,2004,1252,312,1816,1064,688,2192,1440,77,1581,829,453,1957,1205,265,1769,1017,641,2145,1393,171,523,2027,1275,335,1839,1087,711,1463,6,1510,758,382,1886,1134,194,1698,946,570,2074,1322,100,1604,852,476,1980,1228,288,1792,1040,664,2168,1416,53,1557,805,429,1933,1181,241,1745,993,617,2121,1369,147,1651,899,1305,365,1869,1117,741,1493,36,1540,788,412,1916,1164,224,1728,976,600,2104,1352,130,1634,882,506,2010,1258,318,1822,1070,694,2198,1446,83,1587,835,459,1963,1211,271,1775,1023,647,2151,1399,177,1681,929,553,2057,1845,1093,717,1469,12,1516,764,388,1892,1140,200,1704,952,576,2080,1328,106,1610,858,482,1986,1234,294,1798,1046,670,2174,1422,59,1563,811,435,1939,1187,247,1751,999,623,2127,1375,153,1657,905,529,2033,1281,341,729,1481,24,1528,776,400,1904,1152,212,1716,964,588,2092,1340,118,1622,870,494,1998,1246,306,1810,1058,682,2186,1434,71,1575,823,447,1951,1199,259,1763,1011,635,2139,1387,165,1669,917,541,2045,1293,353,1857,1105,0,1504,752,376,1880,1128,188,1692,940,564,2068,1316,94,1598,846,470,1974,1222,282,1786,1034,658,2162,1410,47,1551,799,423,1927,1175,235,1739,987,611,2115,1363,141,1645,893,517,2021,1269,329,1833,1081,705,3]]},f={ECC000:0,ECC050:1,ECC080:2,ECC100:3,ECC140:4},l=["square9","square11","square13","square15","square17","square19","square21","square23","square25","square27","square29","square31","square33","square35","square37","square39","square41","square43","square45","square47","square49"],e.default={chooseEncodationScheme:d,Constants:s,getECC:m,getProperSymbolSize:A,getSymbolSizeInfo:C,getSymbolSizeValue:k,getCodeWord:y,getModuleMapping:O,setBit:p,setFinder:E,setRegionData:j,createModules:i.default.createModules}},function(t,e,n){"use strict";var r,i;function o(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){u(this,a),this._data=t,this.offset=e||0}Object.defineProperty(e,"__esModule",{value:!0}),(r=function(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t})(a,[{key:"fetchBit",value:function t(){return this.getBit(this.offset++)}},{key:"getBit",value:function t(e){return!(e>=this.bitLength)&&0!=(this._data[~~(e/8)]&128>>e%8)}},{key:"setBit",value:function t(e,n){var r,e,r=~~(e/8),e=(128>>e%8)%256;this._data[r]&=(this._data[r]&~e)%256,n&&(this._data[r]|=e)}},{key:"putBit",value:function t(e){this.setBit(this.offset,e),this.offset++}},{key:"putBitsMSF",value:function t(e,n,r){var i,o,u,i=!!r;for(i||(r=this.offset),o=2147483648,u=0;u<n;++u)this.setBit(r+u,0!=(e&o)),o/=2;i||(this.offset+=n)}},{key:"putBitsLSF",value:function t(e,n,r){var i,o,u,i=!!r;for(i||(r=this.offset),o=1,u=0;u<n;++u)this.setBit(r+u,0!=(e&o)),o<<=1;i||(this.offset+=n)}},{key:"bitLength",get:function t(){return 8*this._data.length}},{key:"currentBit",get:function t(){return this.getBit(this.offset)}}]),e.default=a},function(t,e,n){"use strict";var r,i,o,u,a,n;function c(t){return t&&t.__esModule?t:{default:t}}i=c(r=n(2)),u=c(o=n(46)),n=c(a=n(47)),i.default.registerEncoder("EAN8",u.default),i.default.registerEncoder("EAN13",n.default)},function(t,e,n){"use strict";var r,i,i,o,u,a,c,o,s;function f(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function l(t){return t&&t.__esModule?t:{default:t}}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function d(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function w(t){var t,e,e;return h(this,w),(e=(t=v(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,t))).config.text).length<8&&(e+=t.checksum(e,!0)),t.text=e,e=t.calculateData(),t.adjustDesiredSize(e),t.convertToShape(e),t}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&f(t.prototype,e),n&&f(t,n),t},i=n(12),i=l(i),o=n(9),u=l(o),a=n(1),c=n(0),d(w,s=i.default),r(w,[{key:"validate",value:function t(){var e,n,r,e=this.config.text,n;if(!/^[0-9](\d{6}||\d{7})$/.test(e))throw new a.InvalidTextException(e,"Text should be numbers. The length should be 7 or 8.");if(8===e.length&&(r=this.checksum(e.substr(0,7),!0))!=e[7])throw new a.InvalidTextException(e,"Check digit is invalid.")}},{key:"calculateData",value:function t(){var n,e,r,i,e,o,n=this,e=this.text,r=this.isTextGroup,i=e.substr(0,4),e=e.substr(4,4),o=[];return o.push({text:"<",role:"LEFT_QUIET_ZONE"}),o.push({binary:u.default.NORMAL_GUARD,role:"GUARD"}),r?(0,c.str2Array)(i).forEach(function(t,e){o.push({binary:n.encodeChar(t,u.default.ean8LeftStructure,e),text:t})}):o.push({binary:this.encode(i,u.default.ean8LeftStructure),text:i}),o.push({binary:u.default.CENTRE_GUARD,role:"GUARD"}),r?(0,c.str2Array)(e).forEach(function(t,e){o.push({binary:n.encodeChar(t,u.default.rightStructure,e),text:t})}):o.push({binary:this.encode(e,u.default.rightStructure),text:e}),o.push({binary:u.default.NORMAL_GUARD,role:"GUARD"}),o.push({text:">",role:"RIGHT_QUIET_ZONE"}),o}}]),o=w,e.default=o},function(t,e,n){"use strict";var r,i,i,o,s,f,l,o,u;function a(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function c(t){return t&&t.__esModule?t:{default:t}}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function d(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function w(t){var t,e,n,r,e,n;return h(this,w),n=(e=(t=v(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,t))).config).text,r=e.addOn,e=e.addOnHeight,n.length<13&&(n+=t.checksum(n)),t.text=n,(0,l.isDefined)(r)&&(t.addOn=""+r,"auto"!==e&&((0,l.isNumberLike)(e)?e=+e:(e=(0,l.convertUnit)((0,l.fixSize2PixelDefault)(e)),t.addOnHeightInPiexl=e,e/=t.style.unitValue)),t.addOnHeight=e),n=t.calculateData(),t.adjustDesiredSize(n),t.convertToShape(n),t}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t},i=n(12),i=c(i),o=n(9),s=c(o),f=n(1),l=n(0),d(w,u=i.default),r(w,[{key:"validate",value:function t(){var e,n,r,e=this.config.text,n;if(!/^[1-9](\d{11}||\d{12})$/.test(e))throw new f.InvalidTextException(e,"Text should be numbers. And it should not start with 0. The length should be 12 or 13.");if(13===e.length&&(r=this.checksum(e.substr(0,12)))!=e[12])throw new f.InvalidTextException(e,"Check digit is invalid.")}},{key:"calculateData",value:function t(){var n,e,r,i,o,u,a,c,n=this,e=this.text,r=this.addOn,i=this.isTextGroup,o=e.substr(1,6),u=e.substr(7,6),a=s.default.leftStructure[e[0]],c=[];return c.push({text:e[0],role:"LEFT_QUIET_ZONE"}),c.push({binary:s.default.NORMAL_GUARD,role:"GUARD"}),i?(0,l.str2Array)(o).forEach(function(t,e){c.push({binary:n.encodeChar(t,a,e),text:t})}):c.push({binary:this.encode(o,a),text:o}),c.push({binary:s.default.CENTRE_GUARD,role:"GUARD"}),i?(0,l.str2Array)(u).forEach(function(t,e){c.push({binary:n.encodeChar(t,s.default.rightStructure,e),text:t})}):c.push({binary:this.encode(u,s.default.rightStructure),text:u}),c.push({binary:s.default.NORMAL_GUARD,role:"GUARD"}),r?(c.push({role:"ADDON_QUIET_ZONE"}),this.addon(c)):c.push({text:">",role:"NO_ADDON_RIGHT_QUIET_ZONE"}),c}},{key:"addon",value:function t(n){var r,i,e,o,u,a,c,o,r=this,i=this.addOn,e=this.isTextGroup;if(2===i.length)a=u=o=void 0,o=s.default.get2DigitAddOnTable(i),u=this.encodeChar(i[0],o.leftStructure,0),a=this.encodeChar(i[1],o.rightStructure,0),e?(n.push({binary:s.default.ADD_ON_GUARD,role:"ADDON"}),n.push({binary:u,text:i[0],role:"ADDON"}),n.push({binary:s.default.ADD_ON_DELINEATOR,role:"ADDON"}),n.push({binary:a,text:i[1],role:"ADDON"})):n.push({binary:s.default.ADD_ON_GUARD+u+s.default.ADD_ON_DELINEATOR+a,text:i,role:"ADDON"});else{if(5!==i.length)throw new f.BadArgumentsException(i);c=s.default.get5DigitAddOnTable(i),e?(n.push({binary:s.default.ADD_ON_GUARD,role:"ADDON"}),(0,l.str2Array)(i).forEach(function(t,e){n.push({binary:r.encodeFor5DigitAddOn(t,e,c),text:t,role:"ADDON"}),e<i.length-1&&n.push({binary:s.default.ADD_ON_DELINEATOR,role:"ADDON"})})):(o=(0,l.str2Array)(i).reduce(function(t,e,n){return t+=r.encodeFor5DigitAddOn(e,n,c),n<i.length-1&&(t+=s.default.ADD_ON_DELINEATOR),t},""),n.push({binary:s.default.ADD_ON_GUARD+o,text:i,role:"ADDON"}))}n.push({text:">",role:"ADDON_RIGHT_QUIET_ZONE"})}},{key:"encodeFor5DigitAddOn",value:function t(e,n,r){var i;return s.default.TABLE[r[n]][e]}}]),o=w,e.default=o},function(t,e,n){"use strict";var r,i,n,n,n,o;function u(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function f(t){return a(this,f),c(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,t,!0))}Object.defineProperty(e,"__esModule",{value:!0}),i=u(r=n(2)),n=n(11),n=u(n),s(f,o=n.default),n=f,e.default=n,i.default.registerEncoder("GS1_128",n)},function(t,e,n){"use strict";var r,i,i,o,u,a,f,s,a,l,a,c,h,a,v;function d(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function w(t){return t&&t.__esModule?t:{default:t}}function b(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function p(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function g(t){var t,e,n,r,i,o,e,r,i;return b(this,g),n=(e=(t=y(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,t,f.default.defaultConfig))).config).text,r=e.errorCorrectionLevel,i=e.columns,o=e.rows,e=e.compact,t.text=n,t.ecl="auto"===r?r:+r,t.columns="auto"===i?i:+i,t.rows="auto"===o?o:+o,t.compact=!!e,r=f.default.compaction(n),t.encode(r),t.genEcc(),i=t.fillMatrix(),t.adjustDesiredSize(i),t.convertToShape(i),t}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&d(t.prototype,e),n&&d(t,n),t},i=n(7),i=w(i),u=w(o=n(2)),a=n(50),f=w(a),s=n(0),a=n(51),l=w(a),a=n(52),c=w(a),h=n(1),p(g,v=i.default),r(g,[{key:"validate",value:function t(){var e,n,r,i,e,o,e=this.config,n=e.text,r=e.errorCorrectionLevel,i=e.rows,e=e.columns,o;if(!/^[\x00-\xFF]+$/.test(n))throw new h.InvalidTextException(n);if((0,s.isNumberLike)(r)&&(r<0||8<r))throw new h.BadArgumentsException({errorCorrectionLevel:r},"ErrorCorrectionLevel is from 0 - 8.");if((0,s.isNumberLike)(i)&&(i<3||90<i))throw new h.BadArgumentsException({rows:i},"Rows is from 3 - 90.");if((0,s.isNumberLike)(e)&&(e<1||30<e))throw new h.BadArgumentsException({columns:e},"Columns is from 1 - 30.")}},{key:"encodeNC",value:function t(e){var e,i,e=e.text,i=[];return(0,s.sliceString)(e,44,function(t){for(var e,n,r,e=new c.default("1"+t),n=[];r=e.modulo(900),e=e.dividedToIntegerBy((0,c.default)(900)),n.unshift(+r.toString()),!e.lessThan(1););i=i.concat(n)}),i.unshift(f.default.MODE_NC),i}},{key:"encodeBC",value:function t(e){var n,o,n=e.text,o=[];return(0,s.sliceString)(n,6,function(t){var e,n,r,i;if(6===t.length)for(e=5,(n=0,s.sliceString)(t,1,function(t){n+=t.charCodeAt(0)*Math.pow(256,e--)}),r=0,i=Math.floor(n/Math.pow(900,r))%900;o.unshift(i),0<(i=Math.floor(n/Math.pow(900,++r))%900););else(0,s.sliceString)(t,1,function(t){o.push(t.charCodeAt(0))})}),o.unshift(e.mode),o}},{key:"encodeTC",value:function t(e){var n,r,i,n=[],r="al";return e.subModes.forEach(function(e){r!==e.mode&&(n=n.concat(f.default.getTCSubModeValue(e.mode,r))),(0,s.sliceString)(e.text,1,function(t){n.push(f.default.getTCValue(t,e.mode))}),"ps"!==e.mode&&"as"!==e.mode&&(r=e.mode)}),i=[f.default.MODE_TC],(0,s.sliceArray)(n,2,function(t){2===t.length?i.push(30*t[0]+t[1]):i.push(30*t[0]+29)}),i}},{key:"encode",value:function t(e){var n,r,n=this,r=[];e.forEach(function(t){switch(t.mode){case f.default.MODE_TC:r=r.concat(n.encodeTC(t));break;case f.default.MODE_BC:case f.default.MODE_BC6:case f.default.MODE_BC_SHIFT:r=r.concat(n.encodeBC(t));break;case f.default.MODE_NC:r=r.concat(n.encodeNC(t))}}),r[0]===f.default.MODE_TC&&r.shift(),this.data=r}},{key:"genEcc",value:function t(){var e,n,r,i,n,o,u,a,u,c,e=this.data,n=this.ecl,r=this.columns,i=this.rows;if("auto"===n&&(this.ecl=n=f.default.getAutoECL(e)),n=Math.pow(2,n+1),o=e.length+1+n,"auto"===i&&"auto"===r)a=(u=f.default.getAutoRowAndCol(o)).col,u=u.row,this.columns=r=a,this.rows=i=u;else if("auto"===i){if(90<(i=Math.ceil(o/r)))throw new h.BadArgumentsException({columns:r},"Columns is not large enough");this.rows=i=i<3?3:i}else if("auto"===r){if(30<(r=Math.ceil(o/i)))throw new h.BadArgumentsException({rows:i},"Rows is not large enough");this.columns=r}if(e.unshift(c=r*i-n),e.length>f.default.MAX_DATA_NUM||e.length>c)throw new h.TextTooLargeException;for(;e.length<c;)e.push(f.default.PAD);this.ecc=(0,l.default)(e,this.ecl)}},{key:"fillMatrix",value:function t(){var e,n,i,o,u,a,e,c,s,e=this.data,n=this.ecc,i=this.columns,o=this.rows,u=this.ecl,a=this.compact,e=e.concat(n),c=f.default.createModules(o,i);return e.forEach(function(t,e){var n,r,n=Math.floor(e/i),r;c[n][e%i]=f.default.getPattern(n,t)}),s=[],c.forEach(function(t,e){var n,e,r,n=f.default.getPattern(e,f.default.getIndicator(e,o,u,i)),e=f.default.getPattern(e,f.default.getIndicator(e,o,u,i,!0)),r=[f.default.START,n.toString(2)];t.forEach(function(t){r.push(t.toString(2))}),a?r.push(f.default.COMPACT_END):(r.push(e.toString(2)),r.push(f.default.END)),s.push(r)}),s}},{key:"adjustDesiredSize",value:function t(e){var n,r,i,o,u,e,a,c,n=this.config.desiredSize,r=this.quietZone,i=this.fontHeight,o=this.containerWidth,u=this.containerHeight;n&&(e=e[0].reduce(function(t,e){return t+e.length},0)+(0,s.getQuietZoneRelativeValue)(r.left)+(0,s.getQuietZoneRelativeValue)(r.right),o=o-(0,s.getQuietZonePixelValue)(r.left)-(0,s.getQuietZonePixelValue)(r.right),c=a=void 0,c=n.forceRounding?(a=~~(o/e))<1?1:a:a=o/e,u=u-(0,s.getQuietZonePixelValue)(r.top)-(0,s.getQuietZonePixelValue)(r.bottom),this.style.unitValue=c,this.style.fontSizeInUnit=i/c,this.height=u/c-(0,s.getQuietZoneRelativeValue)(r.top)-(0,s.getQuietZoneRelativeValue)(r.bottom),Object.keys(r).forEach(function(t){r[t].originIsAbsoluteValue&&(r[t].relativeValue=r[t].pixelValue/c)}))}},{key:"convertToShape",value:function t(e){var n,r,i,o,u,a,n=this.height,r=this.quietZone,i=n/e.length,o=[],u=void 0,a=r.top.relativeValue;e.forEach(function(t){u=r.left.relativeValue,t.forEach(function(t){(0,s.combineTruthy)(t).forEach(function(t){0!==t?(o.push({type:"rect",x:u,y:a,width:t,height:i}),u+=t):u++})}),a+=i}),this.size={width:u+r.right.relativeValue,height:a+r.bottom.relativeValue},this.shapes=o}}]),a=g,e.default=a,u.default.registerEncoder("PDF417",a)},function(F,t,e){"use strict";var i,r,n,o,u,e,a,c,s,f,l,h,v,d,w,b,y,p,g,m,C,k;function A(t){return-1<w[0].indexOf(t)}function O(t){return-1<w[1].indexOf(t)}function E(t){return-1<w[2].indexOf(t)}function j(t){return-1<w[3].indexOf(t)}function S(t){return A(t)||O(t)||E(t)||j(t)}function T(t,e){for(var n=e,r=t.length,i=0;n<r&&("0"<=t[n]&&t[n]<="9"?i++:i=0,S(t[n]));){if(13<=i){n-=--i;break}n++}return t.substring(e,n)}function x(t,e){for(var n=e,r=t.length;n<r&&!(t[n]<"0"||"9"<t[n]);)n++;return t.substring(e,n)}function M(t,e){for(var n=e,r=t.length,i=0,o=0;n<r;){if(t[n]<"0"||"9"<t[n]?i++:i=0,S(t[n])?o++:i=0,5<=o){n-=--o;break}if(13<=i){n-=--i;break}n++}return t.substring(e,n)}function B(t){for(var e,n,r,i,o,o,o,e=0,n=t.length,r={mode:y,text:""},i=[];e<n;)13<=(o=x(t,e)).length?(i.push(r={mode:g,text:o}),e+=o.length):5<=(o=T(t,e)).length?(i.push(r={mode:y,text:o}),e+=o.length):(1===(o=M(t,e)).length&&r.mode==y?i.push(r={mode:C,text:o}):(r=o.length%6==0?{mode:m,text:o}:{mode:p,text:o},i.push(r)),e+=o.length);return i.forEach(function(t){var e,n,r,i,o,u,a;if(t.mode==y)for(t.subModes=n=[e={mode:"al",text:""}],r=0,i=t.text.length;r<i;r++)A(o=t.text[r])?0===r||"al"===e.mode?e.text+=o:(e=!A(u=t.text[r+1])&&"ll"===e.mode?{mode:"as",text:o}:{mode:"al",text:o},n.push(e)):O(o)?"ll"===e.mode?e.text+=o:n.push(e={mode:"ll",text:o}):E(o)?"pl"===e.mode&&j(o)||"ml"===e.mode?e.text+=o:n.push(e={mode:"ml",text:o}):j(o)&&("pl"===e.mode?e.text+=o:(e=j(a=t.text[r+1])?{mode:"pl",text:o}:{mode:"ps",text:o},n.push(e)))}),i}function _(t,e,n,r,i){var o=~~(t/3),u=~~((e-1)/3),a=3*n+(e-1)%3,c=r-1,s,f=void 0;switch(t%3*3){case 0:f=i?c:u;break;case 3:f=i?u:a;break;case 6:f=i?a:c}return 30*o+f}function N(t,e){var n;return r[t%3][e]}function D(t,e){var n=void 0;switch(e){case"ll":n=w[1].indexOf(t);break;case"ml":n=w[2].indexOf(t);break;case"al":case"as":n=w[0].indexOf(t);break;case"pl":case"ps":n=w[3].indexOf(t)}return n}function I(t,e){var n=D(d[t],e);return-1<n?[n]:k[e][t]}function R(t,e){for(var n,r,n=[],r=0;r<t;r++)n.push((0,i.fillArray)(new Array(e),null));return n}function q(t){var t=t.length;return t<=40?2:t<=160?3:t<=320?4:5}function L(t){var e=31,n=void 0,r=void 0;do{if(e--,r=(n=Math.ceil(t/e))/e,e<2)break}while(r<4);return{col:e,row:n=n<3?3:n}}Object.defineProperty(t,"__esModule",{value:!0}),i=e(0),r=[[120256,125680,128380,120032,125560,128318,108736,119920,108640,86080,108592,86048,110016,120560,125820,109792,120440,125758,88256,109680,88160,89536,110320,120700,89312,110200,120638,89200,110140,89840,110460,89720,110398,89980,128506,119520,125304,128190,107712,119408,125244,107616,119352,84032,107568,119324,84e3,107544,83984,108256,119672,125374,85184,108144,119612,85088,108088,119582,85040,108060,85728,108408,119742,85616,108348,85560,108318,85880,108478,85820,85790,107200,119152,125116,107104,119096,125086,83008,107056,119068,82976,107032,82960,82952,83648,107376,119228,83552,107320,119198,83504,107292,83480,83468,83824,107452,83768,107422,83740,83900,106848,118968,125022,82496,106800,118940,82464,106776,118926,82448,106764,82440,106758,82784,106936,119006,82736,106908,82712,106894,82700,82694,106974,82830,82240,106672,118876,82208,106648,118862,82192,106636,82184,106630,82180,82352,82328,82316,82080,118830,106572,106566,82050,117472,124280,127678,103616,117360,124220,103520,117304,124190,75840,103472,75808,104160,117624,124350,76992,104048,117564,76896,103992,76848,76824,77536,104312,117694,77424,104252,77368,77340,77688,104382,77628,77758,121536,126320,128700,121440,126264,128670,111680,121392,126236,111648,121368,126222,111632,121356,103104,117104,124092,112320,103008,117048,124062,112224,121656,126366,93248,74784,102936,117006,93216,112152,93200,75456,103280,117180,93888,75360,103224,117150,93792,112440,121758,93744,75288,93720,75632,103356,94064,75576,103326,94008,112542,93980,75708,94140,75678,94110,121184,126136,128606,111168,121136,126108,111136,121112,126094,111120,121100,111112,111108,102752,116920,123998,111456,102704,116892,91712,74272,121244,116878,91680,74256,102668,91664,111372,102662,74244,74592,102840,116958,92e3,74544,102812,91952,111516,102798,91928,74508,74502,74680,102878,92088,74652,92060,74638,92046,92126,110912,121008,126044,110880,120984,126030,110864,120972,110856,120966,110852,110850,74048,102576,116828,90944,74016,102552,116814,90912,111e3,121038,90896,73992,102534,90888,110982,90884,74160,102620,91056,74136,102606,91032,111054,91020,74118,91014,91100,91086,110752,120920,125998,110736,120908,110728,120902,110724,110722,73888,102488,116782,90528,73872,102476,90512,110796,102470,90504,73860,90500,73858,73944,90584,90572,90566,120876,120870,110658,102444,73800,90312,90308,90306,101056,116080,123580,100960,116024,70720,100912,115996,70688,100888,70672,70664,71360,101232,116156,71264,101176,116126,71216,101148,71192,71180,71536,101308,71480,101278,71452,71612,71582,118112,124600,127838,105024,118064,124572,104992,118040,124558,104976,118028,104968,118022,100704,115896,123486,105312,100656,115868,79424,70176,118172,115854,79392,105240,100620,79376,70152,79368,70496,100792,115934,79712,70448,118238,79664,105372,100750,79640,70412,79628,70584,100830,79800,70556,79772,70542,70622,79838,122176,126640,128860,122144,126616,128846,122128,126604,122120,126598,122116,104768,117936,124508,113472,104736,126684,124494,113440,122264,126670,113424,104712,117894,113416,122246,104706,69952,100528,115804,78656,69920,100504,115790,96064,78624,104856,117966,96032,113560,122318,100486,96016,78600,104838,96008,69890,70064,100572,78768,70040,100558,96176,78744,104910,96152,113614,70022,78726,70108,78812,70094,96220,78798,122016,126552,128814,122e3,126540,121992,126534,121988,121986,104608,117848,124462,113056,104592,126574,113040,122060,117830,113032,104580,113028,104578,113026,69792,100440,115758,78240,69776,100428,95136,78224,104652,100422,95120,113100,69764,95112,78212,69762,78210,69848,100462,78296,69836,95192,78284,69830,95180,78278,69870,95214,121936,126508,121928,126502,121924,121922,104528,117804,112848,104520,117798,112840,121958,112836,104514,112834,69712,100396,78032,69704,100390,94672,78024,104550,94664,112870,69698,94660,78018,94658,78060,94700,94694,126486,121890,117782,104484,104482,69672,77928,94440,69666,77922,99680,68160,99632,68128,99608,115342,68112,99596,68104,99590,68448,99768,115422,68400,99740,68376,99726,68364,68358,68536,99806,68508,68494,68574,101696,116400,123740,101664,116376,101648,116364,101640,116358,101636,67904,99504,115292,72512,67872,116444,115278,72480,101784,116430,72464,67848,99462,72456,101766,67842,68016,99548,72624,67992,99534,72600,101838,72588,67974,68060,72668,68046,72654,118432,124760,127918,118416,124748,118408,124742,118404,118402,101536,116312,105888,101520,116300,105872,118476,116294,105864,101508,105860,101506,105858,67744,99416,72096,67728,116334,80800,72080,101580,99398,80784,105932,67716,80776,72068,67714,72066,67800,99438,72152,67788,80856,72140,67782,80844,72134,67822,72174,80878,126800,128940,126792,128934,126788,126786,118352,124716,122576,126828,124710,122568,126822,122564,118338,122562,101456,116268,105680,101448,116262,114128,105672,118374,114120,122598,101442,114116,105666,114114,67664,99372,71888,67656,99366,80336,71880,101478,97232,80328,105702,67650,97224,114150,71874,97220,67692,71916,67686,80364,71910,97260,80358,97254,126760,128918,126756,126754,118312,124694,122472,126774,122468,118306,122466,101416,116246,105576,101412,113896,105572,101410,113892,105570,113890,67624,99350,71784,101430,80104,71780,67618,96744,80100,71778,96740,80098,96738,71798,96758,126738,122420,122418,105524,113780,113778,71732,79988,96500,96498,66880,66848,98968,66832,66824,66820,66992,66968,66956,66950,67036,67022,1e5,99984,115532,99976,115526,99972,99970,66720,98904,69024,100056,98892,69008,100044,69e3,100038,68996,66690,68994,66776,98926,69080,100078,69068,66758,69062,66798,69102,116560,116552,116548,116546,99920,102096,116588,115494,102088,116582,102084,99906,102082,66640,68816,66632,98854,73168,68808,66628,73160,68804,66626,73156,68802,66668,68844,66662,73196,68838,73190,124840,124836,124834,116520,118632,124854,118628,116514,118626,99880,115478,101992,116534,106216,101988,99874,106212,101986,106210,66600,98838,68712,99894,72936,68708,66594,81384,72932,68706,81380,72930,66614,68726,72950,81398,128980,128978,124820,126900,124818,126898,116500,118580,116498,122740,118578,122738,99860,101940,99858,106100,101938,114420],[128352,129720,125504,128304,129692,125472,128280,129678,125456,128268,125448,128262,125444,125792,128440,129758,120384,125744,128412,120352,125720,128398,120336,125708,120328,125702,120324,120672,125880,128478,110144,120624,125852,110112,120600,125838,110096,120588,110088,120582,110084,110432,120760,125918,89664,110384,120732,89632,110360,120718,89616,110348,89608,110342,89952,110520,120798,89904,110492,89880,110478,89868,90040,110558,90012,89998,125248,128176,129628,125216,128152,129614,125200,128140,125192,128134,125188,125186,119616,125360,128220,119584,125336,128206,119568,125324,119560,125318,119556,119554,108352,119728,125404,108320,119704,125390,108304,119692,108296,119686,108292,108290,85824,108464,119772,85792,108440,119758,85776,108428,85768,108422,85764,85936,108508,85912,108494,85900,85894,85980,85966,125088,128088,129582,125072,128076,125064,128070,125060,125058,119200,125144,128110,119184,125132,119176,125126,119172,119170,107424,119256,125166,107408,119244,107400,119238,107396,107394,83872,107480,119278,83856,107468,83848,107462,83844,83842,83928,107502,83916,83910,83950,125008,128044,125e3,128038,124996,124994,118992,125036,118984,125030,118980,118978,106960,119020,106952,119014,106948,106946,82896,106988,82888,106982,82884,82882,82924,82918,124968,128022,124964,124962,118888,124982,118884,118882,106728,118902,106724,106722,82408,106742,82404,82402,124948,124946,118836,118834,106612,106610,124224,127664,129372,124192,127640,129358,124176,127628,124168,127622,124164,124162,117568,124336,127708,117536,124312,127694,117520,124300,117512,124294,117508,117506,104256,117680,124380,104224,117656,124366,104208,117644,104200,117638,104196,104194,77632,104368,117724,77600,104344,117710,77584,104332,77576,104326,77572,77744,104412,77720,104398,77708,77702,77788,77774,128672,129880,93168,128656,129868,92664,128648,129862,92412,128644,128642,124064,127576,129326,126368,124048,129902,126352,128716,127558,126344,124036,126340,124034,126338,117152,124120,127598,121760,117136,124108,121744,126412,124102,121736,117124,121732,117122,121730,103328,117208,124142,112544,103312,117196,112528,121804,117190,112520,103300,112516,103298,112514,75680,103384,117230,94112,75664,103372,94096,112588,103366,94088,75652,94084,75650,75736,103406,94168,75724,94156,75718,94150,75758,128592,129836,91640,128584,129830,91388,128580,91262,128578,123984,127532,126160,123976,127526,126152,128614,126148,123970,126146,116944,124012,121296,116936,124006,121288,126182,121284,116930,121282,102864,116972,111568,102856,116966,111560,121318,111556,102850,111554,74704,102892,92112,74696,102886,92104,111590,92100,74690,92098,74732,92140,74726,92134,128552,129814,90876,128548,90750,128546,123944,127510,126056,128566,126052,123938,126050,116840,123958,121064,116836,121060,116834,121058,102632,116854,111080,121078,111076,102626,111074,74216,102646,91112,74212,91108,74210,91106,74230,91126,128532,90494,128530,123924,126004,123922,126002,116788,120948,116786,120946,102516,110836,102514,110834,73972,90612,73970,90610,128522,123914,125978,116762,120890,102458,110714,123552,127320,129198,123536,127308,123528,127302,123524,123522,116128,123608,127342,116112,123596,116104,123590,116100,116098,101280,116184,123630,101264,116172,101256,116166,101252,101250,71584,101336,116206,71568,101324,71560,101318,71556,71554,71640,101358,71628,71622,71662,127824,129452,79352,127816,129446,79100,127812,78974,127810,123472,127276,124624,123464,127270,124616,127846,124612,123458,124610,115920,123500,118224,115912,123494,118216,124646,118212,115906,118210,100816,115948,105424,100808,115942,105416,118246,105412,100802,105410,70608,100844,79824,70600,100838,79816,105446,79812,70594,79810,70636,79852,70630,79846,129960,95728,113404,129956,95480,113278,129954,95356,95294,127784,129430,78588,128872,129974,95996,78462,128868,127778,95870,128866,123432,127254,124520,123428,126696,128886,123426,126692,124514,126690,115816,123446,117992,115812,122344,117988,115810,122340,117986,122338,100584,115830,104936,100580,113640,104932,100578,113636,104930,113634,70120,100598,78824,70116,96232,78820,70114,96228,78818,96226,70134,78838,129940,94968,113022,129938,94844,94782,127764,78206,128820,127762,95102,128818,123412,124468,123410,126580,124466,126578,115764,117876,115762,122100,117874,122098,100468,104692,100466,113140,104690,113138,69876,78324,69874,95220,78322,95218,129930,94588,94526,127754,128794,123402,124442,126522,115738,117818,121978,100410,104570,112890,69754,78074,94714,94398,123216,127148,123208,127142,123204,123202,115408,123244,115400,123238,115396,115394,99792,115436,99784,115430,99780,99778,68560,99820,68552,99814,68548,68546,68588,68582,127400,129238,72444,127396,72318,127394,123176,127126,123752,123172,123748,123170,123746,115304,123190,116456,115300,116452,115298,116450,99560,115318,101864,99556,101860,99554,101858,68072,99574,72680,68068,72676,68066,72674,68086,72694,129492,80632,105854,129490,80508,80446,127380,72062,127924,127378,80766,127922,123156,123700,123154,124788,123698,124786,115252,116340,115250,118516,116338,118514,99444,101620,99442,105972,101618,105970,67828,72180,67826,80884,72178,80882,97008,114044,96888,113982,96828,96798,129482,80252,130010,97148,80190,97086,127370,127898,128954,123146,123674,124730,126842,115226,116282,118394,122618,99386,101498,105722,114170,67706,71930,80378,96632,113854,96572,96542,80062,96702,96444,96414,96350,123048,123044,123042,115048,123062,115044,115042,99048,115062,99044,99042,67048,99062,67044,67042,67062,127188,68990,127186,123028,123316,123026,123314,114996,115572,114994,115570,98932,100084,98930,100082,66804,69108,66802,69106,129258,73084,73022,127178,127450,123018,123290,123834,114970,115514,116602,98874,99962,102138,66682,68858,73210,81272,106174,81212,81182,72894,81342,97648,114364,97592,114334,97564,97550,81084,97724,81054,97694,97464,114270,97436,97422,80990,97502,97372,97358,97326,114868,114866,98676,98674,66292,66290,123098,114842,115130,98618,99194,66170,67322,69310,73404,73374,81592,106334,81564,81550,73310,81630,97968,114524,97944,114510,97932,97926,81500,98012,81486,97998,97880,114478,97868,97862,81454,97902,97836,97830,69470,73564,73550,81752,106414,81740,81734,73518,81774,81708,81702],[109536,120312,86976,109040,120060,86496,108792,119934,86256,108668,86136,129744,89056,110072,129736,88560,109820,129732,88312,109694,129730,88188,128464,129772,89592,128456,129766,89340,128452,89214,128450,125904,128492,125896,128486,125892,125890,120784,125932,120776,125926,120772,120770,110544,120812,110536,120806,110532,84928,108016,119548,84448,107768,119422,84208,107644,84088,107582,84028,129640,85488,108284,129636,85240,108158,129634,85116,85054,128232,129654,85756,128228,85630,128226,125416,128246,125412,125410,119784,125430,119780,119778,108520,119798,108516,108514,83424,107256,119166,83184,107132,83064,107070,83004,82974,129588,83704,107390,129586,83580,83518,128116,83838,128114,125172,125170,119284,119282,107508,107506,82672,106876,82552,106814,82492,82462,129562,82812,82750,128058,125050,119034,82296,106686,82236,82206,82366,82108,82078,76736,103920,117500,76256,103672,117374,76016,103548,75896,103486,75836,129384,77296,104188,129380,77048,104062,129378,76924,76862,127720,129398,77564,127716,77438,127714,124392,127734,124388,124386,117736,124406,117732,117730,104424,117750,104420,104418,112096,121592,126334,92608,111856,121468,92384,111736,121406,92272,111676,92216,111646,92188,75232,103160,117118,93664,74992,103036,93424,112252,102974,93304,74812,93244,74782,93214,129332,75512,103294,129908,129330,93944,75388,129906,93820,75326,93758,127604,75646,128756,127602,94078,128754,124148,126452,124146,126450,117236,121844,117234,121842,103412,103410,91584,111344,121212,91360,111224,121150,91248,111164,91192,111134,91164,91150,74480,102780,91888,74360,102718,91768,111422,91708,74270,91678,129306,74620,129850,92028,74558,91966,127546,128634,124026,126202,116986,121338,102906,90848,110968,121022,90736,110908,90680,110878,90652,90638,74104,102590,91e3,74044,90940,74014,90910,74174,91070,90480,110780,90424,110750,90396,90382,73916,90556,73886,90526,90296,110686,90268,90254,73822,90334,90204,90190,71136,101112,116094,70896,100988,70776,100926,70716,70686,129204,71416,101246,129202,71292,71230,127348,71550,127346,123636,123634,116212,116210,101364,101362,79296,105200,118140,79072,105080,118078,78960,105020,78904,104990,78876,78862,70384,100732,79600,70264,100670,79480,105278,79420,70174,79390,129178,70524,129466,79740,70462,79678,127290,127866,123514,124666,115962,118266,100858,113376,122232,126654,95424,113264,122172,95328,113208,122142,95280,113180,95256,113166,95244,78560,104824,117950,95968,78448,104764,95856,113468,104734,95800,78364,95772,78350,95758,70008,100542,78712,69948,96120,78652,69918,96060,78622,96030,70078,78782,96190,94912,113008,122044,94816,112952,122014,94768,112924,94744,112910,94732,94726,78192,104636,95088,78136,104606,95032,113054,95004,78094,94990,69820,78268,69790,95164,78238,95134,94560,112824,121950,94512,112796,94488,112782,94476,94470,78008,104542,94648,77980,94620,77966,94606,69726,78046,94686,94384,112732,94360,112718,94348,94342,77916,94428,77902,94414,94296,112686,94284,94278,77870,94318,94252,94246,68336,99708,68216,99646,68156,68126,68476,68414,127162,123258,115450,99834,72416,101752,116414,72304,101692,72248,101662,72220,72206,67960,99518,72568,67900,72508,67870,72478,68030,72638,80576,105840,118460,80480,105784,118430,80432,105756,80408,105742,80396,80390,72048,101564,80752,71992,101534,80696,71964,80668,71950,80654,67772,72124,67742,80828,72094,80798,114016,122552,126814,96832,113968,122524,96800,113944,122510,96784,113932,96776,113926,96772,80224,105656,118366,97120,80176,105628,97072,114076,105614,97048,80140,97036,80134,97030,71864,101470,80312,71836,97208,80284,71822,97180,80270,97166,67678,71902,80350,97246,96576,113840,122460,96544,113816,122446,96528,113804,96520,113798,96516,96514,80048,105564,96688,80024,105550,96664,113870,96652,80006,96646,71772,80092,71758,96732,80078,96718,96416,113752,122414,96400,113740,96392,113734,96388,96386,79960,105518,96472,79948,96460,79942,96454,71726,79982,96494,96336,113708,96328,113702,96324,96322,79916,96364,79910,96358,96296,113686,96292,96290,79894,96310,66936,99006,66876,66846,67006,68976,100028,68920,99998,68892,68878,66748,69052,66718,69022,73056,102072,116574,73008,102044,72984,102030,72972,72966,68792,99934,73144,68764,73116,68750,73102,66654,68830,73182,81216,106160,118620,81184,106136,118606,81168,106124,81160,106118,81156,81154,72880,101980,81328,72856,101966,81304,106190,81292,72838,81286,68700,72924,68686,81372,72910,81358,114336,122712,126894,114320,122700,114312,122694,114308,114306,81056,106072,118574,97696,81040,106060,97680,114380,106054,97672,81028,97668,81026,97666,72792,101934,81112,72780,97752,81100,72774,97740,81094,97734,68654,72814,81134,97774,114256,122668,114248,122662,114244,114242,80976,106028,97488,80968,106022,97480,114278,97476,80962,97474,72748,81004,72742,97516,80998,97510,114216,122646,114212,114210,80936,106006,97384,80932,97380,80930,97378,72726,80950,97398,114196,114194,80916,97332,80914,97330,66236,66206,67256,99166,67228,67214,66142,67294,69296,100188,69272,100174,69260,69254,67164,69340,67150,69326,73376,102232,116654,73360,102220,73352,102214,73348,73346,69208,100142,73432,102254,73420,69190,73414,67118,69230,73454,106320,118700,106312,118694,106308,106306,73296,102188,81616,106348,102182,81608,73284,81604,73282,81602,69164,73324,69158,81644,73318,81638,122792,126934,122788,122786,106280,118678,114536,106276,114532,106274,114530,73256,102166,81512,73252,98024,81508,73250,98020,81506,98018,69142,73270,81526,98038,122772,122770,106260,114484,106258,114482,73236,81460,73234,97908,81458,97906,122762,106250,114458,73226,81434,97850,66396,66382,67416,99246,67404,67398,66350,67438,69456,100268,69448,100262,69444,69442,67372,69484,67366,69478,102312,116694,102308,102306,69416,100246,73576,102326,73572,69410,73570,67350,69430,73590,118740,118738,102292,106420,102290,106418,69396,73524,69394,81780,73522,81778,118730,102282,106394,69386,73498,81722,66476,66470,67496,99286,67492,67490,66454,67510,100308,100306,67476,69556,67474,69554,116714]],w=["ABCDEFGHIJKLMNOPQRSTUVWXYZ \u2000\u2002\u2001","abcdefghijklmnopqrstuvwxyz \u2005\u2002\u2001","0123456789&\r\t,:#-.$/+%*=^\u2004 \u2000\u2003\u2001",";<>@[\\]_`~!\r\t,:\n-.$/\"|*()?{}'\u2003"],k={al:{ll:[27],ml:[28],pl:[28,25]},ll:{al:[28,28],ml:[28],pl:[28,25]},ml:{al:[28],ll:[27],pl:[25]},pl:{al:[29],ll:[29,27],ml:[29,28]}},t.default={defaultConfig:b={errorCorrectionLevel:"auto",columns:"auto",rows:"auto",compact:!(d={ll:a="\u2000",ps:c="\u2001",ml:s="\u2002",al:f="\u2003",pl:l="\u2004",as:h="\u2005"}),height:60,quietZone:{top:2,left:2,right:2,bottom:2}},compaction:B,getIndicator:_,MODE_TC:y=e=900,MODE_BC:p=901,MODE_NC:g=902,MODE_BC6:m=924,MODE_BC_SHIFT:C=913,getTCValue:D,PAD:e,createModules:R,getPattern:N,START:n="11111111010101000",END:o="111111101000101001",getAutoECL:q,subModeMap:d,getTCSubModeValue:I,MAX_DATA_NUM:v=925,COMPACT_END:u="1",getAutoRowAndCol:L}},function(t,e,n){"use strict";var r,i;function o(t,e){var o,u,a,o=i[e],u=Math.pow(2,e+1),a=(0,r.fillArray)(new Array(u),0);return t.forEach(function(t){for(var e,n,r,i,e=t+a[u-1],n=void 0,r=void 0,i=u-1;0<i;--i)n=e*o[i]%929,a[i]=(a[i-1]+(r=929-n))%929;n=e*o[0]%929,a[0]=(r=929-n)%929}),a.forEach(function(t,e){0!=t&&(a[e]=929-t)}),a.reverse()}Object.defineProperty(e,"__esModule",{value:!0}),e.default=o,r=n(0),i=[[27,917],[522,568,723,809],[237,308,436,284,646,653,428,379],[274,562,232,755,599,524,801,132,295,116,442,428,295,42,176,65],[361,575,922,525,176,586,640,321,536,742,677,742,687,284,193,517,273,494,263,147,593,800,571,320,803,133,231,390,685,330,63,410],[539,422,6,93,862,771,453,106,610,287,107,505,733,877,381,612,723,476,462,172,430,609,858,822,543,376,511,400,672,762,283,184,440,35,519,31,460,594,225,535,517,352,605,158,651,201,488,502,648,733,717,83,404,97,280,771,840,629,4,381,843,623,264,543],[521,310,864,547,858,580,296,379,53,779,897,444,400,925,749,415,822,93,217,208,928,244,583,620,246,148,447,631,292,908,490,704,516,258,457,907,594,723,674,292,272,96,684,432,686,606,860,569,193,219,129,186,236,287,192,775,278,173,40,379,712,463,646,776,171,491,297,763,156,732,95,270,447,90,507,48,228,821,808,898,784,663,627,378,382,262,380,602,754,336,89,614,87,432,670,616,157,374,242,726,600,269,375,898,845,454,354,130,814,587,804,34,211,330,539,297,827,865,37,517,834,315,550,86,801,4,108,539],[524,894,75,766,882,857,74,204,82,586,708,250,905,786,138,720,858,194,311,913,275,190,375,850,438,733,194,280,201,280,828,757,710,814,919,89,68,569,11,204,796,605,540,913,801,700,799,137,439,418,592,668,353,859,370,694,325,240,216,257,284,549,209,884,315,70,329,793,490,274,877,162,749,812,684,461,334,376,849,521,307,291,803,712,19,358,399,908,103,511,51,8,517,225,289,470,637,731,66,255,917,269,463,830,730,433,848,585,136,538,906,90,2,290,743,199,655,903,329,49,802,580,355,588,188,462,10,134,628,320,479,130,739,71,263,318,374,601,192,605,142,673,687,234,722,384,177,752,607,640,455,193,689,707,805,641,48,60,732,621,895,544,261,852,655,309,697,755,756,60,231,773,434,421,726,528,503,118,49,795,32,144,500,238,836,394,280,566,319,9,647,550,73,914,342,126,32,681,331,792,620,60,609,441,180,791,893,754,605,383,228,749,760,213,54,297,134,54,834,299,922,191,910,532,609,829,189,20,167,29,872,449,83,402,41,656,505,579,481,173,404,251,688,95,497,555,642,543,307,159,924,558,648,55,497,10],[352,77,373,504,35,599,428,207,409,574,118,498,285,380,350,492,197,265,920,155,914,299,229,643,294,871,306,88,87,193,352,781,846,75,327,520,435,543,203,666,249,346,781,621,640,268,794,534,539,781,408,390,644,102,476,499,290,632,545,37,858,916,552,41,542,289,122,272,383,800,485,98,752,472,761,107,784,860,658,741,290,204,681,407,855,85,99,62,482,180,20,297,451,593,913,142,808,684,287,536,561,76,653,899,729,567,744,390,513,192,516,258,240,518,794,395,768,848,51,610,384,168,190,826,328,596,786,303,570,381,415,641,156,237,151,429,531,207,676,710,89,168,304,402,40,708,575,162,864,229,65,861,841,512,164,477,221,92,358,785,288,357,850,836,827,736,707,94,8,494,114,521,2,499,851,543,152,729,771,95,248,361,578,323,856,797,289,51,684,466,533,820,669,45,902,452,167,342,244,173,35,463,651,51,699,591,452,578,37,124,298,332,552,43,427,119,662,777,475,850,764,364,578,911,283,711,472,420,245,288,594,394,511,327,589,777,699,688,43,408,842,383,721,521,560,644,714,559,62,145,873,663,713,159,672,729,624,59,193,417,158,209,563,564,343,693,109,608,563,365,181,772,677,310,248,353,708,410,579,870,617,841,632,860,289,536,35,777,618,586,424,833,77,597,346,269,757,632,695,751,331,247,184,45,787,680,18,66,407,369,54,492,228,613,830,922,437,519,644,905,789,420,305,441,207,300,892,827,141,537,381,662,513,56,252,341,242,797,838,837,720,224,307,631,61,87,560,310,756,665,397,808,851,309,473,795,378,31,647,915,459,806,590,731,425,216,548,249,321,881,699,535,673,782,210,815,905,303,843,922,281,73,469,791,660,162,498,308,155,422,907,817,187,62,16,425,535,336,286,437,375,273,610,296,183,923,116,667,751,353,62,366,691,379,687,842,37,357,720,742,330,5,39,923,311,424,242,749,321,54,669,316,342,299,534,105,667,488,640,672,576,540,316,486,721,610,46,656,447,171,616,464,190,531,297,321,762,752,533,175,134,14,381,433,717,45,111,20,596,284,736,138,646,411,877,669,141,919,45,780,407,164,332,899,165,726,600,325,498,655,357,752,768,223,849,647,63,310,863,251,366,304,282,738,675,410,389,244,31,121,303,263]]},function(n,r,u){var a;!function(t){"use strict";var e,q=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,L=Math.ceil,Z=Math.floor,P=" not a boolean or binary digit",U="rounding mode",$="number type has more than 15 significant digits",G="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_",z=1e14,V=14,W=9007199254740991,X=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],H=1e7,Q=1e9;function i(t){var d,s,p=0,e=T.prototype,v=new T(1),w=20,b=4,c=-7,a=21,y=-1e7,g=1e7,m=!0,f=D,l=!1,h=1,C=0,k={decimalSeparator:".",groupSeparator:",",groupSize:3,secondaryGroupSize:0,fractionGroupSeparator:"\xa0",fractionGroupSize:0},n,A,u,O,E,j,S;function T(t,e){var n,r,i,o,u,a,c=this;if(!(c instanceof T))return new T(t,e);if(null!=e&&f(e,2,64,p,"base")){if(a=t+"",10==(e|=0))return R(c=new T(t instanceof T?t:a),w+c.e+1,b);if((o="number"==typeof t)&&0*t!=0||!new RegExp("^-?"+(n="["+G.slice(0,e)+"]+")+"(?:\\."+n+")?$",e<37?"i":"").test(a))return s(c,a,o,e);o?(c.s=1/t<0?(a=a.slice(1),-1):1,m&&15<a.replace(/^0\.0*|\./,"").length&&F(p,$,t),o=!1):c.s=45===a.charCodeAt(0)?(a=a.slice(1),-1):1,a=x(a,10,e,c.s)}else{if(t instanceof T)return c.s=t.s,c.e=t.e,c.c=(t=t.c)&&t.slice(),void(p=0);if((o="number"==typeof t)&&0*t==0){if(c.s=1/t<0?(t=-t,-1):1,t===~~t){for(r=0,i=t;10<=i;i/=10,r++);return c.e=r,c.c=[t],void(p=0)}a=t+""}else{if(!q.test(a=t+""))return s(c,a,o);c.s=45===a.charCodeAt(0)?(a=a.slice(1),-1):1}}for(0<(i=(a=-1<(r=a.indexOf("."))?a.replace(".",""):a).search(/e/i))?(r<0&&(r=i),r+=+a.slice(i+1),a=a.substring(0,i)):r<0&&(r=a.length),i=0;48===a.charCodeAt(i);i++);for(u=a.length;48===a.charCodeAt(--u););if(a=a.slice(i,u+1))if(u=a.length,o&&m&&15<u&&(W<t||t!==Z(t))&&F(p,$,c.s*t),g<(r=r-i-1))c.c=c.e=null;else if(r<y)c.c=[c.e=0];else{if(c.e=r,c.c=[],i=(r+1)%V,r<0&&(i+=V),i<u){for(i&&c.c.push(+a.slice(0,i)),u-=V;i<u;)c.c.push(+a.slice(i,i+=V));a=a.slice(i),i=V-a.length}else i-=u;for(;i--;a+="0");c.c.push(+a)}else c.c=[c.e=0];p=0}function x(t,e,n,r){var i,o,u,a,c,s,f,l=t.indexOf("."),h=w,v=b;for(n<37&&(t=t.toLowerCase()),0<=l&&(u=C,C=0,t=t.replace(".",""),c=(f=new T(n)).pow(t.length-l),C=u,f.c=e1(r1(J(c.c),c.e),10,e),f.e=f.c.length),o=u=(s=e1(t,n,e)).length;0==s[--u];s.pop());if(!s[0])return"0";if(l<0?--o:(c.c=s,c.e=o,c.s=r,s=(c=d(c,f,h,v,e)).c,a=c.r,o=c.e),l=s[i=o+h+1],u=e/2,a=a||i<0||null!=s[i+1],a=v<4?(null!=l||a)&&(0==v||v==(c.s<0?3:2)):u<l||l==u&&(4==v||a||6==v&&1&s[i-1]||v==(c.s<0?8:7)),i<1||!s[0])t=a?r1("1",-h):"0";else{if(s.length=i,a)for(--e;++s[--i]>e;)s[i]=0,i||(++o,s=[1].concat(s));for(u=s.length;!s[--u];);for(l=0,t="";l<=u;t+=G.charAt(s[l++]));t=r1(t,o)}return t}function M(t,e,n){var r,i,o,o,u=0,a=t.length,c=e%H,s=e/H|0;for(t=t.slice();a--;)u=((i=c*(o=t[a]%H)+(r=s*o+(o=t[a]/H|0)*c)%H*H+u)/n|0)+(r/H|0)+s*o,t[a]=i%n;return t=u?[u].concat(t):t}function B(t,e,n,r){var i,o;if(n!=r)o=r<n?1:-1;else for(i=o=0;i<n;i++)if(t[i]!=e[i]){o=t[i]>e[i]?1:-1;break}return o}function _(t,e,n,r){for(var i=0;n--;)t[n]-=i,i=t[n]<e[n]?1:0,t[n]=i*r+t[n]-e[n];for(;!t[0]&&1<t.length;t.splice(0,1));}function N(t,e,n,r){var i,n,o,u,a;if(n=null!=n&&f(n,0,8,r,U)?0|n:b,!t.c)return t.toString();if(i=t.c[0],o=t.e,null==e)a=J(t.c),a=(19==r||24==r&&o<=c?n1:r1)(a,o);else if(n=(t=R(new T(t),e,n)).e,u=(a=J(t.c)).length,19==r||24==r&&(e<=n||n<=c)){for(;u<e;a+="0",u++);a=n1(a,n)}else if(e-=o,a=r1(a,n),u<n+1){if(0<--e)for(a+=".";e--;a+="0");}else if(0<(e+=n-u))for(n+1==u&&(a+=".");e--;a+="0");return t.s<0&&i?"-"+a:a}function r(t,e){for(var n,r,i=0,n=new T((t=t1(t[0])?t[0]:t)[0]);++i<t.length;){if(!(r=new T(t[i])).s){n=r;break}e.call(n,r)&&(n=r)}return n}function D(t,e,n,r,i){return(t<e||n<t||t!=i1(t))&&F(r,(i||"decimal places")+(t<e||n<t?" out of range":" not an integer"),t),!0}function I(t,e,n){for(var r=1,i=e.length;!e[--i];e.pop());for(i=e[0];10<=i;i/=10,r++);return(n=r+n*V-1)>g?t.c=t.e=null:n<y?t.c=[t.e=0]:(t.e=n,t.c=e),t}function F(t,e,n){var t=new Error(["new BigNumber","cmp","config","div","divToInt","eq","gt","gte","lt","lte","minus","mod","plus","precision","random","round","shift","times","toDigits","toExponential","toFixed","toFormat","toFraction","pow","toPrecision","toString","BigNumber"][t]+"() "+e+": "+n);throw t.name="BigNumber Error",p=0,t}function R(t,e,n,r){var i,o,u,a,c,s,f,l=t.c,h=X;if(l){t:{for(i=1,a=l[0];10<=a;a/=10,i++);if((o=e-i)<0)o+=V,u=e,f=(c=l[s=0])/h[i-u-1]%10|0;else if((s=L((o+1)/V))>=l.length){if(!r)break t;for(;l.length<=s;l.push(0));c=f=0,u=(o%=V)-V+(i=1)}else{for(c=a=l[s],i=1;10<=a;a/=10,i++);f=(u=(o%=V)-V+i)<0?0:c/h[i-u-1]%10|0}if(r=r||e<0||null!=l[s+1]||(u<0?c:c%h[i-u-1]),r=n<4?(f||r)&&(0==n||n==(t.s<0?3:2)):5<f||5==f&&(4==n||r||6==n&&(0<o?0<u?c/h[i-u]:0:l[s-1])%10&1||n==(t.s<0?8:7)),e<1||!l[0])return l.length=0,r?(e-=t.e+1,l[0]=h[(V-e%V)%V],t.e=-e||0):l[0]=t.e=0,t;if(0==o?(l.length=s,a=1,s--):(l.length=s+1,a=h[V-o],l[s]=0<u?Z(c/h[i-u]%h[u])*a:0),r)for(;;){if(0==s){for(o=1,u=l[0];10<=u;u/=10,o++);for(u=l[0]+=a,a=1;10<=u;u/=10,a++);o!=a&&(t.e++,l[0]==z)&&(l[0]=1);break}if(l[s]+=a,l[s]!=z)break;l[s--]=0,a=1}for(o=l.length;0===l[--o];l.pop());}t.e>g?t.c=t.e=null:t.e<y&&(t.c=[t.e=0])}return t}return T.another=i,T.ROUND_UP=0,T.ROUND_DOWN=1,T.ROUND_CEIL=2,T.ROUND_FLOOR=3,T.ROUND_HALF_UP=4,T.ROUND_HALF_DOWN=5,T.ROUND_HALF_EVEN=6,T.ROUND_HALF_CEIL=7,T.ROUND_HALF_FLOOR=8,T.EUCLID=9,T.config=T.set=function(){var t,e,n=0,r={},i=arguments,o=i[0],u=o&&"object"==typeof o?function(){if(o.hasOwnProperty(e))return null!=(t=o[e])}:function(){if(n<i.length)return null!=(t=i[n++])};return u(e="DECIMAL_PLACES")&&f(t,0,Q,2,e)&&(w=0|t),r[e]=w,u(e="ROUNDING_MODE")&&f(t,0,8,2,e)&&(b=0|t),r[e]=b,u(e="EXPONENTIAL_AT")&&(t1(t)?f(t[0],-Q,0,2,e)&&f(t[1],0,Q,2,e)&&(c=0|t[0],a=0|t[1]):f(t,-Q,Q,2,e)&&(c=-(a=0|(t<0?-t:t)))),r[e]=[c,a],u(e="RANGE")&&(t1(t)?f(t[0],-Q,-1,2,e)&&f(t[1],1,Q,2,e)&&(y=0|t[0],g=0|t[1]):f(t,-Q,Q,2,e)&&(0|t?y=-(g=0|(t<0?-t:t)):m&&F(2,e+" cannot be zero",t))),r[e]=[y,g],u(e="ERRORS")&&(t===!!t||1===t||0===t?(p=0,f=(m=!!t)?D:Y):m&&F(2,e+P,t)),r[e]=m,u(e="CRYPTO")&&(!0===t||!1===t||1===t||0===t?t?!(t="undefined"==typeof crypto)&&crypto&&(crypto.getRandomValues||crypto.randomBytes)?l=!0:m?F(2,"crypto unavailable",t?void 0:crypto):l=!1:l=!1:m&&F(2,e+P,t)),r[e]=l,u(e="MODULO_MODE")&&f(t,0,9,2,e)&&(h=0|t),r[e]=h,u(e="POW_PRECISION")&&f(t,0,Q,2,e)&&(C=0|t),r[e]=C,u(e="FORMAT")&&("object"==typeof t?k=t:m&&F(2,e+" not an object",t)),r[e]=k,r},T.max=function(){return r(arguments,e.lt)},T.min=function(){return r(arguments,e.gt)},T.random=(n=9007199254740992,A=Math.random()*n&2097151?function(){return Z(Math.random()*n)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(t){var e,n,r,i,o,u=0,a=[],c=new T(v);if(t=null!=t&&f(t,0,Q,14)?0|t:w,i=L(t/V),l)if(crypto.getRandomValues){for(e=crypto.getRandomValues(new Uint32Array(i*=2));u<i;)9e15<=(o=131072*e[u]+(e[u+1]>>>11))?(n=crypto.getRandomValues(new Uint32Array(2)),e[u]=n[0],e[u+1]=n[1]):(a.push(o%1e14),u+=2);u=i/2}else if(crypto.randomBytes){for(e=crypto.randomBytes(i*=7);u<i;)9e15<=(o=281474976710656*(31&e[u])+1099511627776*e[u+1]+4294967296*e[u+2]+16777216*e[u+3]+(e[u+4]<<16)+(e[u+5]<<8)+e[u+6])?crypto.randomBytes(7).copy(e,u):(a.push(o%1e14),u+=7);u=i/7}else l=!1,m&&F(14,"crypto unavailable",crypto);if(!l)for(;u<i;)(o=A())<9e15&&(a[u++]=o%1e14);for(i=a[--u],t%=V,i&&t&&(a[u]=Z(i/(o=X[V-t]))*o);0===a[u];a.pop(),u--);if(u<0)a=[r=0];else{for(r=-1;0===a[0];a.splice(0,1),r-=V);for(u=1,o=a[0];10<=o;o/=10,u++);u<V&&(r-=V-u)}return c.e=r,c.c=a,c}),d=function(t,e,n,r,i){var o,u,a,c,s,f,l,h,v,d,w,b,y,p,g,m,C,k=t.s==e.s?1:-1,A=t.c,O=e.c;if(!(A&&A[0]&&O&&O[0]))return new T(t.s&&e.s&&(A?!O||A[0]!=O[0]:O)?A&&0==A[0]||!O?0*k:k/0:NaN);for(v=(h=new T(k)).c=[],k=n+(u=t.e-e.e)+1,i||(i=z,u=K(t.e/V)-K(e.e/V),k=k/V|0),a=0;O[a]==(A[a]||0);a++);if(O[a]>(A[a]||0)&&u--,k<0)v.push(1),c=!0;else{for(p=A.length,m=O.length,k+=2,1<(s=Z(i/(O[a=0]+1)))&&(O=M(O,s,i),A=M(A,s,i),m=O.length,p=A.length),y=m,w=(d=A.slice(0,m)).length;w<m;d[w++]=0);C=O.slice(),C=[0].concat(C),g=O[0],O[1]>=i/2&&g++;do{if(s=0,(o=B(O,d,m,w))<0){if(b=d[0],m!=w&&(b=b*i+(d[1]||0)),1<(s=Z(b/g)))for(l=(f=M(O,s=i<=s?i-1:s,i)).length,w=d.length;1==B(f,d,l,w);)s--,_(f,m<l?C:O,l,i),l=f.length,o=1;else 0==s&&(o=s=1),l=(f=O.slice()).length;if(_(d,f=l<w?[0].concat(f):f,w,i),w=d.length,-1==o)for(;B(O,d,m,w)<1;)s++,_(d,m<w?C:O,w,i),w=d.length}else 0===o&&(s++,d=[0])}while(v[a++]=s,d[0]?d[w++]=A[y]||0:(d=[A[y]],w=1),(y++<p||null!=d[0])&&k--);c=null!=d[0],v[0]||v.splice(0,1)}if(i==z){for(a=1,k=v[0];10<=k;k/=10,a++);R(h,n+(h.e=a+u*V-1)+1,r,c)}else h.e=u,h.r=+c;return h},u=/^(-?)0([xbo])(?=\w[\w.]*$)/i,O=/^([^.]+)\.$/,E=/^\.([^.]+)$/,j=/^-?(Infinity|NaN)$/,S=/^\s*\+(?=[\w.])|^\s+|\s+$/g,s=function(t,e,n,r){var i,o=n?e:e.replace(S,"");if(j.test(o))t.s=isNaN(o)?null:o<0?-1:1;else{if(!n&&(o=o.replace(u,function(t,e,n){return i="x"==(n=n.toLowerCase())?16:"b"==n?2:8,r&&r!=i?t:e}),r&&(i=r,o=o.replace(O,"$1").replace(E,"0.$1")),e!=o))return new T(o,i);m&&F(p,"not a"+(r?" base "+r:"")+" number",e),t.s=null}t.c=t.e=null,p=0},e.absoluteValue=e.abs=function(){var t=new T(this);return t.s<0&&(t.s=1),t},e.ceil=function(){return R(new T(this),this.e+1,2)},e.comparedTo=e.cmp=function(t,e){return p=1,o(this,new T(t,e))},e.decimalPlaces=e.dp=function(){var t,e,n=this.c;if(!n)return null;if(t=((e=n.length-1)-K(this.e/V))*V,e=n[e])for(;e%10==0;e/=10,t--);return t=t<0?0:t},e.dividedBy=e.div=function(t,e){return p=3,d(this,new T(t,e),w,b)},e.dividedToIntegerBy=e.divToInt=function(t,e){return p=4,d(this,new T(t,e),0,1)},e.equals=e.eq=function(t,e){return p=5,0===o(this,new T(t,e))},e.floor=function(){return R(new T(this),this.e+1,3)},e.greaterThan=e.gt=function(t,e){return p=6,0<o(this,new T(t,e))},e.greaterThanOrEqualTo=e.gte=function(t,e){return p=7,1===(e=o(this,new T(t,e)))||0===e},e.isFinite=function(){return!!this.c},e.isInteger=e.isInt=function(){return!!this.c&&K(this.e/V)>this.c.length-2},e.isNaN=function(){return!this.s},e.isNegative=e.isNeg=function(){return this.s<0},e.isZero=function(){return!!this.c&&0==this.c[0]},e.lessThan=e.lt=function(t,e){return p=8,o(this,new T(t,e))<0},e.lessThanOrEqualTo=e.lte=function(t,e){return p=9,-1===(e=o(this,new T(t,e)))||0===e},e.minus=e.sub=function(t,e){var n,r,i,o,u,a,c,s,f,l,u=this,a=u.s;if(p=10,e=(t=new T(t,e)).s,!a||!e)return new T(NaN);if(a!=e)return t.s=-e,u.plus(t);if(c=u.e/V,s=t.e/V,f=u.c,l=t.c,!c||!s){if(!f||!l)return f?(t.s=-e,t):new T(l?u:NaN);if(!f[0]||!l[0])return l[0]?(t.s=-e,t):new T(f[0]?u:3==b?-0:0)}if(c=K(c),s=K(s),f=f.slice(),a=c-s){for((i=(o=a<0)?(a=-a,f):(s=c,l)).reverse(),e=a;e--;i.push(0));i.reverse()}else for(r=(o=(a=f.length)<(e=l.length))?a:e,a=e=0;e<r;e++)if(f[e]!=l[e]){o=f[e]<l[e];break}if(o&&(i=f,f=l,l=i,t.s=-t.s),0<(e=(r=l.length)-(n=f.length)))for(;e--;f[n++]=0);for(e=z-1;a<r;){if(f[--r]<l[r]){for(n=r;n&&!f[--n];f[n]=e);--f[n],f[r]+=z}f[r]-=l[r]}for(;0==f[0];f.splice(0,1),--s);return f[0]?I(t,f,s):(t.s=3==b?-1:1,t.c=[t.e=0],t)},e.modulo=e.mod=function(t,e){var n,e,r=this;return p=11,t=new T(t,e),!r.c||!t.s||t.c&&!t.c[0]?new T(NaN):!t.c||r.c&&!r.c[0]?new T(r):(9==h?(e=t.s,t.s=1,n=d(r,t,0,3),t.s=e,n.s*=e):n=d(r,t,0,h),r.minus(n.times(t)))},e.negated=e.neg=function(){var t=new T(this);return t.s=-t.s||null,t},e.plus=e.add=function(t,e){var n,r,i,o,u,a,c,r=this,i=r.s;if(p=12,e=(t=new T(t,e)).s,!i||!e)return new T(NaN);if(i!=e)return t.s=-e,r.minus(t);if(o=r.e/V,u=t.e/V,a=r.c,c=t.c,!o||!u){if(!a||!c)return new T(i/0);if(!a[0]||!c[0])return c[0]?t:new T(a[0]?r:0*i)}if(o=K(o),u=K(u),a=a.slice(),i=o-u){for((n=0<i?(u=o,c):(i=-i,a)).reverse();i--;n.push(0));n.reverse()}for((i=a.length)-(e=c.length)<0&&(n=c,c=a,a=n,e=i),i=0;e;)i=(a[--e]=a[e]+c[e]+i)/z|0,a[e]=z===a[e]?0:a[e]%z;return i&&(a=[i].concat(a),++u),I(t,a,u)},e.precision=e.sd=function(t){var e,n,r=this,i=r.c;if(null!=t&&t!==!!t&&1!==t&&0!==t&&(m&&F(13,"argument"+P,t),t!=!!t)&&(t=null),!i)return null;if(e=(n=i.length-1)*V+1,n=i[n]){for(;n%10==0;n/=10,e--);for(n=i[0];10<=n;n/=10,e++);}return e=t&&r.e+1>e?r.e+1:e},e.round=function(t,e){var n=new T(this);return null!=t&&!f(t,0,Q,15)||R(n,~~t+this.e+1,null!=e&&f(e,0,8,15,U)?0|e:b),n},e.shift=function(t){var e=this;return f(t,-W,W,16,"argument")?e.times("1e"+i1(t)):new T(e.c&&e.c[0]&&(t<-W||W<t)?e.s*(t<0?0:1/0):e)},e.squareRoot=e.sqrt=function(){var t,e,n,r,i,o=this,u=o.c,a=o.s,c=o.e,s=w+4,f=new T("0.5");if(1!==a||!u||!u[0])return new T(!a||a<0&&(!u||u[0])?NaN:u?o:1/0);if((n=0==(a=Math.sqrt(+o))||a==1/0?(((e=J(u)).length+c)%2==0&&(e+="0"),a=Math.sqrt(e),c=K((c+1)/2)-(c<0||c%2),new T(e=a==1/0?"1e"+c:(e=a.toExponential()).slice(0,e.indexOf("e")+1)+c)):new T(a+"")).c[0])for((a=(c=n.e)+s)<3&&(a=0);;)if(i=n,n=f.times(i.plus(d(o,i,s,1))),J(i.c).slice(0,a)===(e=J(n.c)).slice(0,a)){if(n.e<c&&--a,"9999"!=(e=e.slice(a-3,a+1))&&(r||"4999"!=e)){+e&&(+e.slice(1)||"5"!=e.charAt(0))||(R(n,n.e+w+2,1),t=!n.times(n).eq(o));break}if(!r&&(R(i,i.e+w+2,0),i.times(i).eq(o))){n=i;break}s+=4,a+=4,r=1}return R(n,n.e+w+1,b,t)},e.times=e.mul=function(t,e){var n,e,r,i,o,u,a,c,s,f,l,h,v,d,w,f=this,b=f.c,y=(p=17,(t=new T(t,e)).c);if(!(b&&y&&b[0]&&y[0]))return!f.s||!t.s||b&&!b[0]&&!y||y&&!y[0]&&!b?t.c=t.e=t.s=null:(t.s*=f.s,b&&y?(t.c=[0],t.e=0):t.c=t.e=null),t;for(e=K(f.e/V)+K(t.e/V),t.s*=f.s,(a=b.length)<(f=y.length)&&(v=b,b=y,y=v,r=a,a=f,f=r),r=a+f,v=[];r--;v.push(0));for(d=z,w=H,r=f;0<=--r;){for(l=y[r]%w,h=y[r]/w|(n=0),i=r+(o=a);r<i;)n=((c=l*(c=b[--o]%w)+(u=h*c+(s=b[o]/w|0)*l)%w*w+v[i]+n)/d|0)+(u/w|0)+h*s,v[i--]=c%d;v[i]=n}return n?++e:v.splice(0,1),I(t,v,e)},e.toDigits=function(t,e){var n=new T(this);return t=null!=t&&f(t,1,Q,18,"precision")?0|t:null,e=null!=e&&f(e,0,8,18,U)?0|e:b,t?R(n,t,e):n},e.toExponential=function(t,e){return N(this,null!=t&&f(t,0,Q,19)?1+~~t:null,e,19)},e.toFixed=function(t,e){return N(this,null!=t&&f(t,0,Q,20)?~~t+this.e+1:null,e,20)},e.toFormat=function(t,e){var t,n,e,r,i,o,u,e,a,c,s,t=N(this,null!=t&&f(t,0,Q,21)?~~t+this.e+1:null,e,21);if(this.c){if(e=t.split("."),r=+k.groupSize,i=+k.secondaryGroupSize,o=k.groupSeparator,u=e[0],e=e[1],s=(c=(a=this.s<0)?u.slice(1):u).length,i&&(n=r,r=i,s-=i=n),0<r&&0<s){for(u=c.substr(0,n=s%r||r);n<s;n+=r)u+=o+c.substr(n,r);0<i&&(u+=o+c.slice(n)),a&&(u="-"+u)}t=e?u+k.decimalSeparator+((i=+k.fractionGroupSize)?e.replace(new RegExp("\\d{"+i+"}\\B","g"),"$&"+k.fractionGroupSeparator):e):u}return t},e.toFraction=function(t){var e,n,r,i,o,u,a,c,e,e=m,s=this,i=s.c,f=new T(v),l=n=new T(v),h=a=new T(v);if(null!=t&&(m=!1,u=new T(t),m=e,(e=u.isInt())&&!u.lt(v)||(m&&F(22,"max denominator "+(e?"out of range":"not an integer"),t),t=!e&&u.c&&R(u,u.e+1,1).gte(v)?u:null)),!i)return s.toString();for(e=J(i),i=f.e=e.length-s.e-1,f.c[0]=X[(o=i%V)<0?V+o:o],t=!t||0<u.cmp(f)?0<i?f:l:u,o=g,g=1/0,u=new T(e),a.c[0]=0;c=d(u,f,0,1),1!=(r=n.plus(c.times(h))).cmp(t);)n=h,h=r,l=a.plus(c.times(r=l)),a=r,f=u.minus(c.times(r=f)),u=r;return r=d(t.minus(n),h,0,1),a=a.plus(r.times(l)),n=n.plus(r.times(h)),a.s=l.s=s.s,e=d(l,h,i*=2,b).minus(s).abs().cmp(d(a,n,i,b).minus(s).abs())<1?[l.toString(),h.toString()]:[a.toString(),n.toString()],g=o,e},e.toNumber=function(){return+this},e.toPower=e.pow=function(t,e){var n,r,i,o=Z(t<0?-t:+t),u=this;if(null!=e&&(p=23,e=new T(e)),!f(t,-W,W,23,"exponent")&&(!isFinite(t)||W<o&&(t/=0)||parseFloat(t)!=t&&!(t=NaN))||0==t)return n=Math.pow(+u,t),new T(e?n%e:n);for(e?1<t&&u.gt(v)&&u.isInt()&&e.gt(v)&&e.isInt()?u=u.mod(e):(i=e,e=null):C&&(n=L(C/V+2)),r=new T(v);;){if(o%2){if(!(r=r.times(u)).c)break;n?r.c.length>n&&(r.c.length=n):e&&(r=r.mod(e))}if(!(o=Z(o/2)))break;u=u.times(u),n?u.c&&u.c.length>n&&(u.c.length=n):e&&(u=u.mod(e))}return e?r:(t<0&&(r=v.div(r)),i?r.mod(i):n?R(r,C,b):r)},e.toPrecision=function(t,e){return N(this,null!=t&&f(t,1,Q,24,"precision")?0|t:null,e,24)},e.toString=function(t){var e,n=this,r=n.s,i=n.e;return null===i?r?(e="Infinity",r<0&&(e="-"+e)):e="NaN":(e=J(n.c),e=null!=t&&f(t,2,64,25,"base")?x(r1(e,i),0|t,10,r):(i<=c||a<=i?n1:r1)(e,i),r<0&&n.c[0]&&(e="-"+e)),e},e.truncated=e.trunc=function(){return R(new T(this),this.e+1,1)},e.valueOf=e.toJSON=function(){var t,e=this,n=e.e;return null===n?e.toString():(t=J(e.c),t=(n<=c||a<=n?n1:r1)(t,n),e.s<0?"-"+t:t)},e.isBigNumber=!0,null!=t&&T.config(t),T}function K(t){var e=0|t;return 0<t||t===e?e:e-1}function J(t){for(var e,n,r=1,i=t.length,o=t[0]+"";r<i;){for(e=t[r++]+"",n=V-e.length;n--;e="0"+e);o+=e}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function o(t,e){var n,r,i=t.c,o=e.c,u=t.s,a=e.s,t=t.e,e=e.e;if(!u||!a)return null;if(n=i&&!i[0],r=o&&!o[0],n||r)return n?r?0:-a:u;if(u!=a)return u;if(n=u<0,r=t==e,!i||!o)return r?0:!i^n?1:-1;if(!r)return e<t^n?1:-1;for(a=(t=i.length)<(e=o.length)?t:e,u=0;u<a;u++)if(i[u]!=o[u])return i[u]>o[u]^n?1:-1;return t==e?0:e<t^n?1:-1}function Y(t,e,n){return(t=i1(t))>=e&&t<=n}function t1(t){return"[object Array]"==Object.prototype.toString.call(t)}function e1(t,e,n){for(var r,i=[0],o,u=0,a=t.length;u<a;){for(o=i.length;o--;i[o]*=e);for(i[r=0]+=G.indexOf(t.charAt(u++));r<i.length;r++)n-1<i[r]&&(null==i[r+1]&&(i[r+1]=0),i[r+1]+=i[r]/n|0,i[r]%=n)}return i.reverse()}function n1(t,e){return(1<t.length?t.charAt(0)+"."+t.slice(1):t)+(e<0?"e":"e+")+e}function r1(t,e){var n,r;if(e<0){for(r="0.";++e;r+="0");t=r+t}else if(++e>(n=t.length)){for(r="0",e-=n;--e;r+="0");t+=r}else e<n&&(t=t.slice(0,e)+"."+t.slice(e));return t}function i1(t){return((t=parseFloat(t))<0?L:Z)(t)}(e=i()).default=e.BigNumber=e,void 0!==(a=function(){return e}.call(r,u,r,n))&&(n.exports=a)}(this)},function(t,e,n){"use strict";var r,i,i,o,u,a,c,a,s,a,f,l,h,a,v;function d(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function w(t){return t&&t.__esModule?t:{default:t}}function b(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function p(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function g(t){var t,e,n;return b(this,g),e=void 0,n=(e=new("2"==(t=y(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,t,c.default.defaultConfig))).config.model?f:s).default(t.config)).getMatrix(),t.adjustDesiredSize(n),t.convertToShape(n),t}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&d(t.prototype,e),n&&d(t,n),t},i=n(7),i=w(i),u=w(o=n(2)),a=n(3),c=w(a),a=n(54),s=w(a),a=n(56),f=w(a),l=n(1),h=n(0),p(g,v=i.default),r(g,[{key:"validate",value:function t(){var e=this.config,n=e.version,r=e.model,i=e.charset,o=e.text,u=e.charCode,e=e.connectionNo;if(!(o||u&&0!==u.length))throw new l.InvalidTextException(o);if("1"!=r&&"2"!=r)throw new l.BadArgumentsException({model:r});if("UTF-8"!=i&&"Shift_JIS"!=i)throw new l.BadArgumentsException({charset:i});if("1"==r&&(0,h.isNumberLike)(n)&&(n<1||14<n))throw new l.BadArgumentsException({version:n},"Model 1 only support version 1 - 14.");if("2"==r&&(0,h.isNumberLike)(n)&&(n<1||40<n))throw new l.BadArgumentsException({version:n},"Model 2 only support version 1 - 40.");if(15<e||e<0)throw new l.BadArgumentsException({connectionNo:e},"ConnectionNo is in range 0 - 15.")}}]),a=g,e.default=a,u.default.registerEncoder("QRCode",a)},function(t,e,n){"use strict";var r,a,i,f,i,i,o,c,o,s,o,l,o,h,o,v,n,u;function d(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function w(t){return t&&t.__esModule?t:{default:t}}function b(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function p(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function g(){return b(this,g),y(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&d(t.prototype,e),n&&d(t,n),t},a=n(0),i=n(3),f=w(i),i=n(14),i=w(i),o=n(15),c=w(o),o=n(16),s=w(o),o=n(17),l=w(o),o=n(18),h=w(o),o=n(19),v=w(o),p(g,u=i.default),r(g,[{key:"encodeData",value:function t(e,n){var r,i,o,u,r=this,i=this.charCountIndicatorBitsNumber,o=this.charCode,u=new v.default;return u.put(0,4),n&&(u.put(f.default.MODE_INDICATOR.StructuredAppend,4),u.put(n.connectionNo,4),u.put(n.connectionCnt-1,4),u.put(f.default.getParityData(o,this.config.charset),8)),e.forEach(function(t){if(t.code){var e=void 0;switch(t.mode){case"Numeric":e=new s.default(t.code);break;case"Alphanumeric":e=new l.default(t.code);break;case"8BitByte":e=new c.default(t.code,r.config.charset);break;case"Kanji":e=new h.default(t.code)}u.put(e.getMode(),4),u.put(e.getLength(),i[e.mode]),e.write(u)}}),u}},{key:"getFinalMessage",value:function t(e){var n,r,e,n=[],r=e.map(function(t){return t.data}),e=e.map(function(t){return t.ec});return r.forEach(function(t){return n=n.concat(t)}),e.forEach(function(t){return n=n.concat(t)}),n}},{key:"setModules",value:function t(e){var n=this.modulesCount;this.modules=f.default.createModules(n),this.addPositionDetectionPattern(),this.addExtensionPattern(),this.addTimingPattern(),this.maskModules(e)}},{key:"maskModules",value:function t(e){var n,r,i,o,u,n,n=this.modules,r=this.errorCorrectionLevel,i=this.model,o=this.config.mask;"auto"===o&&(o=this.autoMask(e)),u=f.default.getMaskFunc(o),this.maskPattern=o,n=f.default.addFormatInformation(n,o,r,i),this.modules=this.fillDataModules(n,e,u)}},{key:"autoMask",value:function t(r){var i,o,u,a,c,s,i=this,o=this.modules,u=this.errorCorrectionLevel,a=this.model,c=void 0,s=void 0;return f.default.maskFuncs.forEach(function(t,e){var n,n,t,n=f.default.addFormatInformation(o,e,u,a,!0),n=i.fillDataModules(n,r,t),t=f.default.getMaskScore(n);(!c||t<c)&&(c=t,s=e)}),s}},{key:"addExtensionPattern",value:function t(){var e,n,r,i,o,u,e=this.modules,n=this.version,r=e.length;if(e[r-1][r-1]=1,e[r-2][r-1]=0,e[r-1][r-2]=0,e[r-2][r-2]=0,i=Math.floor(n/2),(0,a.isEven)(n))for(o=0;o<i;o++)this.addBaseExtension(13+8*o),this.addRightExtension(13+8*o);else for(u=0;u<i;u++)this.addBaseExtension(17+8*u),this.addRightExtension(17+8*u)}},{key:"addBaseExtension",value:function t(e){var n,r,i,r,n=this.modules,r=n.length,i=r-2,r=r-1;n[i][e]=0,n[i][e+1]=0,n[i][e+2]=0,n[i][e+3]=0,n[r][e]=1,n[r][e+1]=1,n[r][e+2]=1,n[r][e+3]=1}},{key:"addRightExtension",value:function t(e){var n,r,i,r,n=this.modules,r=n.length,i=r-2,r=r-1;n[e][i]=0,n[e+1][i]=0,n[e+2][i]=0,n[e+3][i]=0,n[e][r]=1,n[e+1][r]=1,n[e+2][r]=1,n[e+3][r]=1}},{key:"fillDataModules",value:function t(e,n,r){var i,o,u,a,c,s,f,i=e.length,o=void 0,u=void 0;for(o=u=i-1,a=2,(c=new v.default(n)).next(),c.next(),c.next(),c.next();0<=o;){if(o==i-5)a=4;else if(8==o)a=2;else if(6==o){o--;continue}for(;0<=u;){if(null!==e[u][o]);else{for(s=0;s<a;s++)f=c.next(),r(u,o-s)&&(f=!f),e[u][o-s]=+f}u--}o-=a,u=i-1}return e}},{key:"getMatrix",value:function t(){var e,e,e,e,e,e,e=this.charCode,e=this.analysisData(e),e=this.encodeData(e),e=this.processConnection(e);return this.padBuffer(e),e=this.generateErrorCorrectionCode(e),e=this.getFinalMessage(e),this.setModules(e),this.modules}}]),n=g,e.default=n},function(t,e,n){"use strict";var h,r,i,v,o,d;for(Object.defineProperty(e,"__esModule",{value:!0}),e.default=u,h=new Array(256),r=0;r<8;r++)h[r]=1<<r;for(i=8;i<256;i++)h[i]=h[i-4]^h[i-5]^h[i-6]^h[i-8];for(v=new Array(256),o=0;o<255;o+=1)v[h[o]]=o;function u(t,e,n){for(var r,i,o,u,a,c,s,f,l,r=[],i=d[e],o=t.slice(0),u=0;u<n;u++){if(0!=o[0]){for(a=v[o[0]],c=0;c<=i.length-1;c++){for(s=i[c]+a;255<=s;)s-=255;r[c]=h[s]}for(f=0;f<=i.length-1;f++)o[f]=o[f]^r[f]}for(l=1;l<o.length;l++)o[l-1]=o[l];o[o.length-1]=0}return o.slice(0,e)}d=[null,null,null,null,null,null,null,[0,87,229,146,149,238,102,21],null,null,[0,251,67,46,61,118,70,64,94,32,45],null,null,[0,74,152,176,100,86,100,106,104,130,218,206,140,78],null,[0,8,183,61,91,202,37,51,58,58,237,140,124,5,99,105],[0,120,104,107,109,102,161,76,3,91,191,147,169,182,194,225,120],[0,43,139,206,78,43,239,123,206,214,147,24,99,150,39,243,163,136],[0,215,234,158,94,184,97,118,170,79,187,152,148,252,179,5,98,96,153],null,[0,17,60,79,50,61,163,26,187,202,180,221,225,83,239,156,164,212,212,188,190],null,[0,210,171,247,242,93,230,14,109,221,53,200,74,8,172,98,80,219,134,160,105,165,231],null,[0,229,121,135,48,211,117,251,126,159,180,169,152,192,226,228,218,111,0,117,232,87,96,227,21],null,[0,173,125,158,2,103,182,118,17,145,201,111,28,165,53,161,21,245,142,13,102,48,227,153,145,218,70],null,[0,168,223,200,104,224,234,108,180,110,190,195,147,205,27,232,201,21,43,245,87,42,195,212,119,242,37,9,123],null,[0,41,173,145,152,216,31,179,182,50,48,110,86,239,96,222,125,42,173,226,193,224,130,156,37,251,216,238,40,192,180],null,[0,10,6,106,190,249,167,4,67,209,138,138,32,242,123,89,27,120,185,80,156,38,69,171,60,28,222,80,52,254,185,220,241],null,[0,111,77,146,94,26,21,108,19,105,94,113,193,86,140,163,125,58,158,229,239,218,103,56,70,114,61,183,129,167,13,98,62,129,51],null,[0,200,183,98,16,172,31,246,234,60,152,115,0,167,152,113,248,238,107,18,63,218,37,87,210,105,177,120,74,121,196,117,251,113,233,30,120],null,null,null,[0,59,116,79,161,252,98,128,205,128,161,247,57,163,56,235,106,53,26,187,174,226,104,170,7,175,35,181,114,88,41,47,163,125,134,72,20,232,53,35,15],null,[0,250,103,221,230,25,18,137,231,0,3,58,242,221,191,110,84,230,8,188,106,96,147,15,131,139,34,101,223,39,101,213,199,237,254,201,123,171,162,194,117,50,96],null,[0,190,7,61,121,71,246,69,55,168,188,89,243,191,25,72,123,9,145,14,247,1,238,44,78,143,62,224,126,118,114,68,163,52,194,217,147,204,169,37,130,113,102,73,181],null,[0,112,94,88,112,253,224,202,115,187,99,89,5,54,113,129,44,58,16,135,216,169,211,36,1,4,96,60,241,73,104,234,8,249,245,119,174,52,25,157,224,43,202,223,19,82,15],null,[0,228,25,196,130,211,146,60,24,251,90,39,102,240,61,178,63,46,123,115,18,221,111,135,160,182,205,107,206,95,150,120,184,91,21,247,156,140,238,191,11,94,227,84,50,163,39,34,108],null,[0,232,125,157,161,164,9,118,46,209,99,203,193,35,3,209,111,195,242,203,225,46,13,32,160,126,209,130,160,242,215,242,75,77,42,189,32,113,65,124,69,228,114,235,175,124,170,215,232,133,205],null,[0,116,50,86,186,50,220,251,89,192,46,86,127,124,19,184,233,151,215,22,14,59,145,37,242,203,134,254,89,190,94,59,65,124,113,100,233,235,121,22,76,86,97,39,242,200,220,101,33,239,254,116,51],null,[0,183,26,201,87,210,221,113,21,46,65,45,50,238,184,249,225,102,58,209,218,109,165,26,95,184,192,52,245,35,254,238,175,172,79,123,25,122,43,120,108,215,80,128,201,235,8,153,59,101,31,198,76,31,156],null,[0,106,120,107,157,164,216,112,116,2,91,248,163,36,201,202,229,6,144,254,155,135,208,170,209,12,139,127,142,182,249,177,174,190,28,10,85,239,184,101,124,152,206,96,23,163,61,27,196,247,151,154,202,207,20,61,10],null,[0,82,116,26,247,66,27,62,107,252,182,200,185,235,55,251,242,210,144,154,237,176,141,192,248,152,249,206,85,253,142,65,165,125,23,24,30,122,240,214,6,129,218,29,145,127,134,206,245,117,29,41,63,159,142,233,125,148,123],null,[0,107,140,26,12,9,141,243,197,226,197,219,45,211,101,219,120,28,181,127,6,100,247,2,205,198,57,115,219,101,109,160,82,37,38,238,49,160,209,121,86,11,124,30,181,84,25,194,87,65,102,190,220,70,27,209,16,89,7,33,240],null,[0,65,202,113,98,71,223,248,118,214,94,1,122,37,23,2,228,58,121,7,105,135,78,243,118,70,76,223,89,72,50,70,111,194,17,212,126,181,35,221,117,235,11,229,149,147,123,213,40,115,6,200,100,26,246,182,218,127,215,36,186,110,106],null,[0,45,51,175,9,7,158,159,49,68,119,92,123,177,204,187,254,200,78,141,149,119,26,127,53,160,93,199,212,29,24,145,156,208,150,218,209,4,216,91,47,184,146,47,140,195,195,125,242,238,63,99,108,140,230,242,31,204,11,178,243,217,156,213,231],null,[0,5,118,222,180,136,136,162,51,46,117,13,215,81,17,139,247,197,171,95,173,65,137,178,68,111,95,101,41,72,214,169,197,95,7,44,154,77,111,236,40,121,143,63,87,80,253,240,126,217,77,34,232,106,50,168,82,76,146,67,106,171,25,132,93,45,105],null,[0,247,159,223,33,224,93,77,70,90,160,32,254,43,150,84,101,190,205,133,52,60,202,165,220,203,151,93,84,15,84,253,173,160,89,227,52,199,97,95,231,52,177,41,125,137,241,166,225,118,2,54,32,82,215,175,198,43,238,235,27,101,184,127,3,5,8,163,238],null]},function(t,e,n){"use strict";var r,f,i,l,i,a,i,i,o,c,o,s,o,h,o,v,o,d,n,u;function w(t,e){for(var n,r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function b(t){return t&&t.__esModule?t:{default:t}}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function g(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function m(){return y(this,m),p(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e,n){return e&&w(t.prototype,e),n&&w(t,n),t},f=n(0),i=n(3),l=b(i),i=n(13),a=b(i),i=n(14),i=b(i),o=n(15),c=b(o),o=n(16),s=b(o),o=n(17),h=b(o),o=n(18),v=b(o),o=n(19),d=b(o),g(m,u=i.default),r(m,[{key:"encodeData",value:function t(e,n){var r,i,o,u,r=this,i=this.charCountIndicatorBitsNumber,o=this.charCode,u=new d.default;return n&&(u.put(l.default.MODE_INDICATOR.StructuredAppend,4),u.put(n.connectionNo,4),u.put(n.connectionCnt-1,4),u.put(l.default.getParityData(o,this.config.charset),8)),e.forEach(function(t){if(t.code){var e=void 0;switch(t.mode){case"Numeric":e=new s.default(t.code);break;case"Alphanumeric":e=new h.default(t.code);break;case"8BitByte":e=new c.default(t.code,r.config.charset);break;case"Kanji":e=new v.default(t.code)}u.put(e.getMode(),4),u.put(e.getLength(),i[e.mode]),e.write(u)}}),u}},{key:"getFinalMessage",value:function t(e){for(var n,r,i,o,u,a,c,s,n=[],r=e.map(function(t){return t.data}),i=e.map(function(t){return t.ec}),o=(0,f.getMaxValue)(r),u=(0,f.getMaxValue)(i),a=function t(e){r.forEach(function(t){(0,f.isDefined)(t[e])&&n.push(t[e])})},c=0;c<o;c++)a(c);for(s=function t(e){i.forEach(function(t){(0,f.isDefined)(t[e])&&n.push(t[e])})},c=0;c<u;c++)s(c);return n}},{key:"setModules",value:function t(e){var n=this.modulesCount,r=this.version;this.modules=l.default.createModules(n),this.addPositionDetectionPattern(),this.addAlignmentPattern(),this.addTimingPattern(),6<r&&this.addVersionInformation(),this.maskModules(e)}},{key:"maskModules",value:function t(e){var n,r,i,o,u,n,n=this.modules,r=this.errorCorrectionLevel,i=this.model,o=this.config.mask;"auto"===o&&(o=this.autoMask(e)),u=l.default.getMaskFunc(o),this.maskPattern=o,n=l.default.addFormatInformation(n,o,r,i),this.modules=this.fillDataModules(n,e,u)}},{key:"autoMask",value:function t(r){var i,o,u,a,c,s,i=this,o=this.modules,u=this.errorCorrectionLevel,a=this.model,c=void 0,s=void 0;return l.default.maskFuncs.forEach(function(t,e){var n,n,t,n=l.default.addFormatInformation(o,e,u,a,!0),n=i.fillDataModules(n,r,t),t=l.default.getMaskScore(n);(!c||t<c)&&(c=t,s=e)}),s}},{key:"addAlignmentPattern",value:function t(){var n,r,e,i,n=this,r=this.modules,e=this.version,i=l.default.getAlignmentPattersPos(e);i.forEach(function(e){i.forEach(function(t){null===r[e][t]&&n.addPattern(t-2,e-2,5)})})}},{key:"addVersionInformation",value:function t(){for(var e,n,r,i,o,u,e=this.modulesCount,n=this.modules,r=this.version,i=a.default.getBCH18(r),o=0;o<18;o++)u=i>>o&1,n[Math.floor(o/3)][o%3+e-8-3]=u,n[o%3+e-8-3][Math.floor(o/3)]=u}},{key:"fillDataModules",value:function t(e,n,r){for(var i,o,u,a,c,s,f,l,i=e.length,o=-1,u=i-1,a=7,c=0,s=i-1;0<s;s-=2)for(6==s&&--s;;){for(f=0;f<2;f+=1)null==e[u][s-f]&&(l=!1,c<n.length&&(l=1==(n[c]>>>a&1)),r(u,s-f)&&(l=!l),e[u][s-f]=+l,-1==--a)&&(c+=1,a=7);if((u+=o)<0||i<=u){u-=o,o=-o;break}}return e}},{key:"getMatrix",value:function t(){var e,e,e,e,e,e,e=this.charCode,e=this.analysisData(e),e=this.encodeData(e),e=this.processConnection(e);return this.padBuffer(e),e=this.generateErrorCorrectionCode(e),e=this.getFinalMessage(e),this.setModules(e),this.modules}}]),n=m,e.default=n},function(t,e,n){"use strict";var r,i;function o(t){return t&&t.__esModule?t:{default:t}}function u(t){var e,t,e=document.createElement("div");return e.style.visibility="hidden",e.style.absolute="hidden",e.style.padding="0",e.style.border="0",e.style.width=t,document.body.appendChild(e),t=e.getBoundingClientRect(),document.body.removeChild(e),t.width}(i=o(r=n(2))).default.registerPlugin("convertUnit",u)},function(t,e,n){"use strict";var r,i;function o(t){return t&&t.__esModule?t:{default:t}}function u(t,e){var n,t,n=document.createElement("span");return n.style.visibility="hidden",n.style.absolute="hidden",n.style.lineHeight="1",n.textContent=t,Object.keys(e).forEach(function(t){n.style[t]=e[t]}),document.body.appendChild(n),t=n.getBoundingClientRect(),document.body.removeChild(n),t.height}(i=o(r=n(2))).default.registerPlugin("measureText",u)}],i={},r.m=n,r.c=i,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},r.n=function(e){var t=e&&e.__esModule?function t(){return e.default}:function t(){return e};return r.d(t,"a",t),t},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=20).default;function r(t){var e;return(i[t]||(e=i[t]={i:t,l:!1,exports:{}},n[t].call(e.exports,e,e.exports,r),e.l=!0,e)).exports}var n,i})},Common:function(t){"use strict";t.exports=e.Spread},CalcEngine:function(t){"use strict";t.exports=e.Spread.CalcEngine},Core:function(t){"use strict";t.exports=e.Spread.Sheets},Sparkline:function(t){"use strict";t.exports=e.Spread.Sheets.Sparklines}},i={},o={},function(){"use strict";var t,e,t=o;Object.defineProperty(t,"__esModule",{value:!0}),t.QRCode=t.PDF417=t.GS1_128=t.EAN8=t.EAN13=t.DataMatrix=t.Code93=t.Code49=t.Code39=t.Code128=t.Codabar=t.BarcodeBase=void 0,e=n("./dist/plugins/barcode/barcodeSparkline.js"),Object.defineProperty(t,"BarcodeBase",{enumerable:!0,get:function(){return e.BarcodeBase}}),Object.defineProperty(t,"Codabar",{enumerable:!0,get:function(){return e.Codabar}}),Object.defineProperty(t,"Code128",{enumerable:!0,get:function(){return e.Code128}}),Object.defineProperty(t,"Code39",{enumerable:!0,get:function(){return e.Code39}}),Object.defineProperty(t,"Code49",{enumerable:!0,get:function(){return e.Code49}}),Object.defineProperty(t,"Code93",{enumerable:!0,get:function(){return e.Code93}}),Object.defineProperty(t,"DataMatrix",{enumerable:!0,get:function(){return e.DataMatrix}}),Object.defineProperty(t,"EAN13",{enumerable:!0,get:function(){return e.EAN13}}),Object.defineProperty(t,"EAN8",{enumerable:!0,get:function(){return e.EAN8}}),Object.defineProperty(t,"GS1_128",{enumerable:!0,get:function(){return e.GS1_128}}),Object.defineProperty(t,"PDF417",{enumerable:!0,get:function(){return e.PDF417}}),Object.defineProperty(t,"QRCode",{enumerable:!0,get:function(){return e.QRCode}})}(),(((e=void 0===e?{}:e).Spread=e.Spread||{}).Sheets=e.Spread.Sheets||{}).Barcode=o});