import{s as U1}from"./spreadSheetsDesignerResourcesCn-afJmEehS.js";(function(k1){function z1(g1){var J;return(J=F1[g1])!==void 0||(J=F1[g1]={exports:{}},q1[g1].call(J.exports,J,J.exports,z1)),J.exports}var q1,F1,L1;q1={"./dist/plugins/barcode/barcodeSparkline.js":function(g1,J,y1){var N1,K,A,S,k,w,u,p,y,C,f,m,g,c,l,s,a,o,n,e,r,t,i,h,b,_,M,O,R,N,E,z,D,Q;function F(i1,o1,r1,h1,a1){return{plotX:i1+a1,plotY:o1+a1,plotWidth:r1-2*a1,plotHeight:h1-2*a1}}function L(){return i.call(this)||this}function T(){return h.call(this)||this}function x(){return b.call(this)||this}function U(){return _.call(this)||this}function G(){return M.call(this)||this}function P(){return O.call(this)||this}function H(){return R.call(this)||this}function n1(){return N.call(this)||this}function t1(){return E.call(this)||this}function Y(){return z.call(this)||this}function u1(){return D.call(this)||this}function f1(){return Q.call(this)||this}function s1(i1){i1&&(N1.jMt[i1.name()]=i1)}r=this&&this.__extends||(t=function(i1,o1){return(t=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(r1,h1){r1.__proto__=h1}:function(r1,h1){for(var a1 in h1)Object.prototype.hasOwnProperty.call(h1,a1)&&(r1[a1]=h1[a1])}))(i1,o1)},function(i1,o1){if(typeof o1!="function"&&o1!==null)throw new TypeError("Class extends value "+String(o1)+" is not a constructor or null");function r1(){this.constructor=i1}t(i1,o1),i1.prototype=o1===null?Object.create(o1):(r1.prototype=o1.prototype,new r1)}),Object.defineProperty(J,"__esModule",{value:!0}),J.DataMatrix=J.PDF417=J.Code49=J.GS1_128=J.Code128=J.Code93=J.Code39=J.Codabar=J.EAN8=J.EAN13=J.QRCode=J.BarcodeBase=J.generatePaintBarcodeViewModel=void 0,m=y1("Core"),g=y1("CalcEngine"),f=y1("Common"),N1=y1("Sparkline"),K=y1("./dist/plugins/barcode/lib/barcode.all.js"),y1=m.GC$,A=y1.isEmptyObject,S=g.Functions.Function,k=void 0,w=f.Common.lt.ht,u=f.Common.lt.tv,m=g.Convert,p=m.Nh,y=g.Errors.Value,C=["text","color","backgroundColor"],J.generatePaintBarcodeViewModel=function(i1,o1,r1){o1=(i1=F(-1,-1,i1,o1,2)).plotWidth;var h1,a1,d1,$=i1.plotHeight;(r1=u(r1)).desiredSize={width:o1,height:$,forceRounding:!1};try{h1=new K(null,r1)}catch{return null}return a1=h1.getSize(),d1=parseInt(h1.option.font.fontSize,10),d1=isNaN(d1)?12:d1,r1.desiredSize.width=o1,r1.desiredSize.height=$,r1.font=r1.font||{},r1.font.fontSize=d1+"px",o1=K.getDataUrl(r1),h1.destroy(),{dataUrl:o1,plotRect:i1,barcodeSize:a1}},r(L,i=N1.SparklineEx),L.prototype.getBarcodeInfo=function(){return null},L.prototype.createFunction=function(){var i1,o1,r1,h1=this;if(r1=this.getBarcodeInfo())return i1=new S(r1.fnName,r1.minimum,r1.maxmum),o1=r1.acceptsArrayArgIndex,i1.acceptsArray=function(a1){return a1===o1},i1.evaluate=function(a1){var d1;a1[o1]=p(a1[o1])?a1[o1].array[0]:a1[o1],(a1=h1.t(a1,r1.properties)).type=r1.type,a1.isBarcode=!0;try{d1=u(a1),new K(null,d1)}catch{return y}return a1},i1},L.prototype.paint=function(i1,o1,r1,h1,a1,d1,$){(function(v1,T1,M1,D1,I1,R1,P1){var B1,w1,C1,d,v,B=F(M1,D1,I1,R1,2),Z=(T1=u(T1),B.plotX),I=B.plotY,q=B.plotWidth;B=B.plotHeight,T1.desiredSize={width:q,height:B,forceRounding:!1};try{v=new K(null,T1)}catch{return}B1=v.getSize(),w1=parseInt(v.option.font.fontSize,10),w1=isNaN(w1)?12:w1,C1=(d=window.screen).deviceXDPI,C1=window.devicePixelRatio||(C1?C1/d.logicalXDPI:1),v.destroy(),T1.desiredSize.width=q*C1,T1.desiredSize.height=B*C1,T1.font=T1.font||{},T1.font.fontSize=w1*C1*P1.zoomFactor+"px",d=K.getDataUrl(T1),(v=P1.sheet.BO())&&(v.getState(d)?(q=v.getImage(d),v1.save(),v1.rect(M1,D1,I1,R1),v1.clip(),v1.drawImage(q,0,0,q.width,q.height,Z,I,B1.width,B1.height),v1.restore()):v.addImage(d,k,{loadCallback:P1.asyncResourcesLoadedCallback}))})(i1,o1,r1,h1,a1,d1,$)},L.prototype.t=function(i1,o1){var r1={},h1={},a1={};return o1.forEach(function(d1,$){var v1=i1[$];if(!w(v1))if(d1.indexOf("quietZone")!==-1)switch(d1){case"quietZoneLeft":h1.left=v1;break;case"quietZoneRight":h1.right=v1;break;case"quietZoneTop":h1.top=v1;break;case"quietZoneBottom":h1.bottom=v1}else if(d1.indexOf("font")!==-1)switch(d1){case"fontFontFamily":a1.fontFamily=v1;break;case"fontFontStyle":a1.fontStyle=v1;break;case"fontFontWeight":a1.fontWeight=v1;break;case"fontTextDecoration":a1.textDecoration=v1;break;case"fontTextAlign":a1.textAlign=v1;break;case"fontFontSize":a1.fontSize=v1}else r1[d1]=v1}),A(h1)||(r1.quietZone=h1),A(a1)||(r1.font=a1),r1},J.BarcodeBase=y1=L,r(T,h=y1),T.prototype.getBarcodeInfo=function(){return{fnName:"BC_QRCODE",minimum:1,maxmum:16,type:"QRCode",acceptsArrayArgIndex:9,properties:C.concat(["errorCorrectionLevel","model","version","mask","connection","connectionNo","charCode","charset","quietZoneLeft","quietZoneRight","quietZoneTop","quietZoneBottom","quietZoneAddOn"])}},J.QRCode=f=T,r(x,b=y1),x.prototype.getBarcodeInfo=function(){return{fnName:"BC_EAN13",minimum:1,maxmum:18,type:"EAN13",properties:C.concat(["showLabel","labelPosition","addOn","addOnLabelPosition","fontFontFamily","fontFontStyle","fontFontWeight","fontTextDecoration","fontTextAlign","fontFontSize","quietZoneLeft","quietZoneRight","quietZoneTop","quietZoneBottom"])}},J.EAN13=m=x,r(U,_=y1),U.prototype.getBarcodeInfo=function(){return{fnName:"BC_EAN8",minimum:1,maxmum:15,type:"EAN8",properties:C.concat(["showLabel","labelPosition","fontFontFamily","fontFontStyle","fontFontWeight","fontTextDecoration","fontTextAlign","fontFontSize","quietZoneLeft","quietZoneRight","quietZoneTop","quietZoneBottom"])}},J.EAN8=g=U,r(G,M=y1),G.prototype.getBarcodeInfo=function(){return{fnName:"BC_CODABAR",minimum:1,maxmum:17,type:"Codabar",properties:C.concat(["showLabel","labelPosition","checkDigit","nwRatio","fontFontFamily","fontFontStyle","fontFontWeight","fontTextDecoration","fontTextAlign","fontFontSize","quietZoneLeft","quietZoneRight","quietZoneTop","quietZoneBottom"])}},J.Codabar=c=G,r(P,O=y1),P.prototype.getBarcodeInfo=function(){return{fnName:"BC_CODE39",minimum:1,maxmum:19,type:"Code39",properties:C.concat(["showLabel","labelPosition","labelWithStartAndStopCharacter","checkDigit","nwRatio","fullASCII","fontFontFamily","fontFontStyle","fontFontWeight","fontTextDecoration","fontTextAlign","fontFontSize","quietZoneLeft","quietZoneRight","quietZoneTop","quietZoneBottom"])}},J.Code39=l=P,r(H,R=y1),H.prototype.getBarcodeInfo=function(){return{fnName:"BC_CODE93",minimum:1,maxmum:17,type:"Code93",properties:C.concat(["showLabel","labelPosition","checkDigit","fullASCII","fontFontFamily","fontFontStyle","fontFontWeight","fontTextDecoration","fontTextAlign","fontFontSize","quietZoneLeft","quietZoneRight","quietZoneTop","quietZoneBottom"])}},J.Code93=s=H,r(n1,N=y1),n1.prototype.getBarcodeInfo=function(){return{fnName:"BC_CODE128",minimum:1,maxmum:16,type:"Code128",properties:C.concat(["showLabel","labelPosition","codeSet","fontFontFamily","fontFontStyle","fontFontWeight","fontTextDecoration","fontTextAlign","fontFontSize","quietZoneLeft","quietZoneRight","quietZoneTop","quietZoneBottom"])}},J.Code128=a=n1,r(t1,E=y1),t1.prototype.getBarcodeInfo=function(){return{fnName:"BC_GS1_128",minimum:1,maxmum:16,type:"GS1_128",properties:C.concat(["showLabel","labelPosition","fontFontFamily","fontFontStyle","fontFontWeight","fontTextDecoration","fontTextAlign","fontFontSize","quietZoneLeft","quietZoneRight","quietZoneTop","quietZoneBottom"])}},J.GS1_128=o=t1,r(Y,z=y1),Y.prototype.getBarcodeInfo=function(){return{fnName:"BC_CODE49",minimum:1,maxmum:17,type:"Code49",properties:C.concat(["showLabel","labelPosition","grouping","groupNo","fontFontFamily","fontFontStyle","fontFontWeight","fontTextDecoration","fontTextAlign","fontFontSize","quietZoneLeft","quietZoneRight","quietZoneTop","quietZoneBottom"])}},J.Code49=n=Y,r(u1,D=y1),u1.prototype.getBarcodeInfo=function(){return{fnName:"BC_PDF417",minimum:1,maxmum:11,type:"PDF417",properties:C.concat(["errorCorrectionLevel","rows","columns","compact","quietZoneLeft","quietZoneRight","quietZoneTop","quietZoneBottom"])}},J.PDF417=e=u1,r(f1,Q=y1),f1.prototype.getBarcodeInfo=function(){return{fnName:"BC_DATAMATRIX",minimum:1,maxmum:14,type:"DataMatrix",properties:C.concat(["eccMode","ecc200SymbolSize","ecc200EncodingMode","ecc00_140SymbolSize","structuredAppend","structureNumber","fileIdentifier","quietZoneLeft","quietZoneRight","quietZoneTop","quietZoneBottom"])}},J.DataMatrix=r=f1,S&&(s1(new f),s1(new m),s1(new g),s1(new c),s1(new l),s1(new s),s1(new a),s1(new o),s1(new n),s1(new e),s1(new r))},"./dist/plugins/barcode/lib/barcode.all.js":function(g1){typeof self<"u",g1.exports=function(){return y1=[function(K,A,S){var k,w;function u(x){return typeof x=="function"}function p(x){return!!x&&x===x.window}function y(x){return x!==void 0}function C(x){return u(Number.isNaN)?Number.isNaN(x):x!=x}function f(x){return!C(+x)}function m(){for(var x,U=1G&&(G=P[U])}),G}function t(x){for(var U,G,P,H,n1=arguments.length,t1=Array(1>=0,G=String(G!==void 0?G:" "),x.length>U?x:((U-=x.length)>G.length&&(G+=h(G,U/G.length)),G.slice(0,U)+String(x)))}function O(x,U){w[x]=U}function R(x,U){return 1.4*n(U.fontSize,12)}function N(x,U){return w.measureText(x,U)}function E(x,U){return(u(w.measureText)?(A.measureText=E=N,E):R)(x,U)}function z(x){return n(x,12)}function D(x){return f(x)?n(x,12):w.convertUnit(x)}function Q(x){return(u(w.convertUnit)?(A.convertUnit=Q=D,Q):z)(x)}function F(x){return f(x)?x+"px":x}function L(x){return x.originIsAbsoluteValue?0:x.relativeValue}function T(x){return x.originIsAbsoluteValue?x.pixelValue:0}Object.defineProperty(A,"__esModule",{value:!0}),k=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},A.isFunction=u,A.isWindow=p,A.isDefined=y,A.isNaN=C,A.isNumberLike=f,A.sliceString=m,A.sliceArray=g,A.str2Array=c,A.combineTruthy=l,A.convertRadix=s,A.isEven=a,A.isOdd=o,A.toNumber=n,A.getUnit=e,A.getMaxValue=r,A.assign=t,A.deepMerge=i,A.strRepeat=h,A.isInteger=b,A.fillArray=_,A.strPadStart=M,A.registerPlugin=O,A.measureText=E,A.convertUnit=Q,A.fixSize2PixelDefault=F,A.getQuietZoneRelativeValue=L,A.getQuietZonePixelValue=T,w={}},function(K,A,S){function k(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function w(r,t){if(r)return!t||typeof t!="object"&&typeof t!="function"?r:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function u(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t)}function p(r){var t,i=1>P-1&1,9>>8),U.push(255&x));return U}function Q(T){for(var x,U=[],G=0,P=T.length;G>6,128|63&x):x<55296||57344<=x?U.push(224|x>>12,128|x>>6&63,128|63&x):(x=65536+((1023&x)<<10|1023&T[++G]),U.push(240|x>>18,128|x>>12&63,128|x>>6&63,128|63&x));return U}function F(T,x){for(var U=void 0,G=(U=(x==="Shift_JIS"?D:Q)(T))[0],P=1,H=U.length;P","?","@","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","","","","","","","\x07","\b"," ",` `,"\v","\f","\r","","","","","","","","","","","","","","\x1B","","","",""," "," "," "," "," "," "," "," "," "," "],p=[" ","!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/","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"," "," "," "," "," "," "," "," "," "," "],y=["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"],C="2331112",f={CodeC:99,CodeB:100,CodeA:101,FNC1:102,FNC2:97,FNC3:96,StartA:103,StartB:104,StartC:105},m={CodeC:"\xCC",CodeB:"\xCD",CodeA:"\xCE",FNC1:S.default.FNC1,FNC2:S.default.FNC2,FNC3:S.default.FNC3,StartA:"\xD0",StartB:"\xD1",StartC:"\xD2"},A.default={getCharValue:c,getCharPattern:l,getPatternByIndex:s,Code128Sym:f,stopPattern:C,defaultConfig:{height:60,showLabel:!0,codeSet:"auto",quietZone:{top:0,right:10,bottom:0,left:10},labelPosition:"bottom"},Code128Char:m,encode:a,isValideNumber:o}},function(K,A,S){Object.defineProperty(A,"__esModule",{value:!0}),A.default={FNC1:"\xCF",FNC2:"\xCA",FNC3:"\xC9",DataMatrixFNC1:"\u2000",DataMatrixMacro05:"\u2004",DataMatrixMacro06:"\u2005"}},function(K,A,S){var k,w,u;function p(c,l){for(var s,a=0;a=L)return e(p.keys[T]);throw new w.TextTooLargeException}function t(F){var L=void 0;switch(F){case 1:case 2:L=1;break;case 4:L=2;break;case 16:L=4;break;case 36:L=6}return{rowOfRegion:L,colOfRegion:~~(F/L)}}function i(F,L){var T,x;for(L=L||F,T=[],x=0;xthis.height?this.addOnHeight=this.height:this.addOnHeight=r)}}]),S=c,A.default=S},function(K,A,S){var k,w,u,p;function y(m){for(var g=0;m!=0;)g+=1,m>>>=1;return g}function C(m,g){g=g===2?u:p;for(var c=m<<10;0<=y(c)-y(k);)c^=k<a?(r.push(t),n=e-1):e===o&&r.push(c),t=c,e++;return r}},{key:"processConnection",value:function(c){var l,s,a=this.totalDataBits,o=(s=this.config).connection;if(s=+(s=s.connectionNo),o){if((o=Math.ceil(c.length/(a-20)))-1a)throw new y.TextTooLargeException;return c}},{key:"padBuffer",value:function(c){var l=this.totalDataBits;for(c.length+4<=l&&c.put(w.default.MODE_INDICATOR.Terminator,4);c.length%8!=0;)c.putBit(!1);for(;!(c.length>=l||(c.put(w.default.padCodewords0,8),c.length>=l));)c.put(w.default.padCodewords1,8)}},{key:"getAutoVersion",value:function(){for(var c,l=this.errorCorrectionLevel,s=this.charCode,a=this.model,o=w.default.getEstimatedVersion(l,s,a);o<40;o++)if(this.version=o,this.modulesCount=w.default.getSizeByVersion(this.version),this.charCountIndicatorBitsNumber=w.default.getCharacterCountIndicatorbitsNumber(this.version),this.errorCorrectionCharacteristics=w.default.getErrorCorrectionCharacteristics(this.version,l),this.totalDataCount=this.errorCorrectionCharacteristics.reduce(function(n,e){return n+e.data},0),this.totalDataBits=8*this.totalDataCount,c=this.analysisData(s),!(this.encodeData(c).length>this.totalDataBits))return o;throw new y.TextTooLargeException}},{key:"analysisData",value:function(c){var l,s,a,o,n,e=this.version,r=this.config.charset;switch(n=w.default.getCharMode(c[0],r)){case"Alphanumeric":s=w.default.getModeCheckInfo(n,e),s=c.slice(1,1+s[0]),w.default.isMode("8BitByte",s)&&(n="8BitByte");break;case"Numeric":s=w.default.getModeCheckInfo(n,e),l=c.slice(1,1+s[0]),s=c.slice(1,1+s[1]),w.default.isMode("8BitByte",l)?n="8BitByte":w.default.isMode("Alphanumeric",s)&&(n="Alphanumeric")}return o=[a={mode:n,code:[]}],c.forEach(function(t,i){var h,b,_=w.default.getCharMode(t,r);a.mode===_?a.code.push(t):a.mode==="8BitByte"?_==="Kanji"?(a={mode:_,code:[t]},o.push(a)):_==="Numeric"?(h=w.default.getModeCheckInfo(_,e),b=c.slice(i,i+h[2]),c.length-i>=h[2]&&w.default.isMode(_,b)?(a={mode:_,code:[t]},o.push(a)):a.code.push(t)):_==="Alphanumeric"&&(h=w.default.getModeCheckInfo(_,e),b=c.slice(i,i+h[1]),c.length-i>=h[1])&&w.default.isMode(_,b)?(a={mode:_,code:[t]},o.push(a)):a.code.push(t):a.mode!=="Alphanumeric"||_==="Kanji"||_==="8BitByte"||_==="Numeric"&&(h=w.default.getModeCheckInfo(_,e),b=c.slice(i,i+h[2]),c.length-i>=h[2])&&w.default.isMode(_,b)?(a={mode:_,code:[t]},o.push(a)):a.code.push(t)}),o}},{key:"encodeData",value:function(){throw new y.SubclassNotImplementException}},{key:"generateErrorCorrectionCode",value:function(c){var l=this.errorCorrectionCharacteristics,s=[],a=0;return l.forEach(function(o){var n=c.getBuffer().slice(a,a+o.data);s.push({data:n,ec:(0,p.default)(n,o.ec,o.data)}),a+=o.data}),s}},{key:"getFinalMessage",value:function(){throw new y.SubclassNotImplementException}},{key:"setModules",value:function(){throw new y.SubclassNotImplementException}},{key:"maskModules",value:function(){throw new y.SubclassNotImplementException}},{key:"autoMask",value:function(){throw new y.SubclassNotImplementException}},{key:"addRectModule",value:function(c,l,s,a){for(var o,n=4>>8)+(255&m):57408>>8)+(255&m)),f.put(g,13)})}}]),A.default=C},function(K,A,S){function k(p,y){for(var C,f=0;f>>this.length%8),this.length+=1}},{key:"put",value:function(p,y){for(var C=0;C>>y-C-1&1)==1)}},{key:"getAt",value:function(p){var y=Math.floor(p/8);return(this.buffer[y]>>>7-p%8&1)==1}},{key:"getBuffer",value:function(){return this.buffer}},{key:"next",value:function(){return this.index++,this.getAt(this.index-1)}}]),A.default=u},function(K,A,S){S(21),S(11),S(31),S(33),S(35),S(37),S(45),S(48),S(49),S(53),S(57),S(58),K.exports=S(2)},function(K,A,S){var k,w,u,p,y,C,f,m;function g(n,e){for(var r,t=0;t(c*=m)?(m=Math.floor(c/f.width*g.length),C.text.substr(0,m)):g}},{key:"clear",value:function(){this.dom.removeChild(this.g),this.addGroup()}},{key:"meatureText",value:function(C){return C.setAttribute("x",0),C.setAttribute("y",0),this.dom.appendChild(C),C.getBBox()}},{key:"getDataUrl",value:function(){return"data:image/svg+xml;base64,"+btoa(this.dom.outerHTML)}}]),A.default=y},function(K,A,S){Object.defineProperty(A,"__esModule",{value:!0}),A.default={defaultConfig:{height:60,showLabel:!0,labelPosition:"bottom",checkDigit:!1,quietZone:{top:0,right:10,bottom:0,left:10},nwRatio:3},TABLE:{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(K,A,S){var k,w,u,p,y;function C(c,l){for(var s,a=0;ah.length-1)throw new C.GroupOverflowException(h.length);this.groupCount=h.length,this.mode=3,i=h[b]}for(o=[],e=n=0,r=i.length;nu.default.CONSTANTS.Base256SmallBlockSize?2:1)}return i}},{key:"getMaxProperLength",value:function(n,e){for(var r,t,i=this.m_symbol,h=this.encodingMode,b=~~(((r=n+1)+(t=i.length))/2),_=(i=0,0);ru.default.ASCIIMax&&t!=u.default.CONSTANTS.FNC1Input?2:1,bu.default.ASCIIMax&&(h+=2,t-=128),h+=u.default.getTripletCharSetChannel(n,t)==0?1:2;break;case"X12":u.default.getX12Value(t)==u.default.CONSTANTS.InvalidTripletValue?h=-1:h+=1;break;case"EDIFACT":u.default.getEDIFACTValue(t)==u.default.CONSTANTS.InvalidTripletValue?h=-1:h+=1;break;case"Base256":h+=1}if(h<0)return h}return h}},{key:"getCodeLength",value:function(n){return this.getEncodingLength(n.charSet,this.getCodeWordLength(n.charSet,n.start,n.length),n.start,n.length)}},{key:"getEncodingUnitsInfomative",value:function(n,e,r){for(var t,i,h,b,_,M,O,R,N,E=[],z=0,D=n,Q=!(t={charSet:"ASCII",start:n,length:0,codeWords:0,encodingLength:0}),F=(N=this.m_symbol).length;D>1,D+=i,e<=z+~~(i/2))break;continue}break;case"C40":case"Text":case"X12":for(;N[D]>u.default.ASCIIMax&&(t.codeWords+=2),0b;);if(_<=0||(t.charSet!=M&&(t.length=D-t.start,0=R))break;Q||t.charSet!="ASCII"||(++t.codeWords,++D)}for(t.length=D-t.start,0u.default.ASCIIMax&&N[D]!=u.default.CONSTANTS.FNC1Input){if(!(zt.start&&(t.length=D-t.start,E.push(t)),{s_taken:D-n,units:u.default.mergeUnits(E)}}},{key:"getEncodingUnits",value:function(n,e){var r=this,t=this.encodingMode,i=this.m_symbol,h=void 0,b=0,_=0;return n>8),t[n++]=i%256,n}},{key:"generateFileIdentifier",value:function(n,e){var r=this.m_symbol,t=this.fileIdentifier;return e%u.default.CONSTANTS.FileIdentifierMax+1<<8|(t==0?r.length%u.default.CONSTANTS.FileIdentifierMax+1:t)}},{key:"encode",value:function(n,e){switch(n.charSet){case"ASCII":return this.encodeASCII(n.start,n.length,e);case"C40":return this.encodeC40(n.start,n.length,e);case"Text":return this.encodeText(n.start,n.length,e);case"X12":return this.encodeX12(n.start,n.length,e);case"EDIFACT":return this.encodeEDIFACT(n.start,n.length,e);case"Base256":return this.encodeBase256(n.start,n.length,e)}}},{key:"encodeASCII",value:function(n,e,r){for(var t,i=this.m_code,h=this.m_symbol,b=n,_=n+e;b<_;b++)(t=u.default.getCharType(h[b]))==="FNC1"?(i.push(u.default.CONSTANTS.ASCIIFNC1),r++):t==="ExtendedASCII"?(i.push(u.default.CONSTANTS.ASCIIUpperShift),i.push(h[b]-u.default.ASCIIMax),r+=2):b+1<_&&t==="Numeric"&&u.default.getCharType(h[b+1])==="Numeric"?(t=10*(h[b]-48)+(h[b+1]-48)+130,i.push(t),r++,b++):(i.push(h[b]+1),r++);return r}},{key:"encodeTriplet",value:function(n,e,r,t){var i,h,b,_,M=this.m_code,O=this.m_symbol,R=this.symbolInfo,N=0,E=0,z=null,D=[],Q=e;switch(n){case"C40":M[t++]=u.default.CONSTANTS.LatchToC40;break;case"Text":M[t++]=u.default.CONSTANTS.LatchToText;break;case"X12":M[t++]=u.default.CONSTANTS.LatchToX12}for(;Q>8,M[t++]=255&N}if(i=!0,0(h==1?1:h-1))throw new y.TextTooLargeException;if(i=!1,2<=h)if(n=="X12")M[t++]=u.default.CONSTANTS.TripletUnlatch,t=this.encodeASCII(Q-D.length,D.length,t);else{for(i=!0,N=E=0;E<3;++E)N=(N*=40)+(0>8,M[t++]=255&N}else _=O[Q-1],n==="X12"||_>u.default.ASCIIMax&&(M[t-2]=u.default.CONSTANTS.TripletUnlatch,--t),t=this.encodeASCII(Q-1,1,t)}return i&&t>4),M[r++]=s(i<<4);break;case 3:M[r++]=s(i>>10),M[r++]=s(i>>2),M[r++]=s(i<<6);break;case 4:M[r++]=s(i>>16),M[r++]=s(i>>8),M[r++]=i%256}}return hu.default.CONSTANTS.Base256SmallBlockSize&&(i[r++]=u.default.getRandomizedValue(u.default.CONSTANTS.Base256SmallBlockSize+e/u.default.CONSTANTS.Base256SmallBlockSize,r,u.default.CONSTANTS.Base256RandomBase)),i[r++]=u.default.getRandomizedValue(e%(u.default.CONSTANTS.Base256SmallBlockSize+1),r,u.default.CONSTANTS.Base256RandomBase),t=n;tu.default.ASCIIMax,b.forEach(function(o1,r1){switch(r1){case Q.ASCII:U&&!x?b[r1]=a(b[r1])+2:u.default.isDigit(T)?b[r1]+=.5:b[r1]+=1;break;case Q.C40:case Q.Text:b[r1]+=x?4/3:U?8/3:u.default.getTripletCharSetChannel(F[r1],T)==0?2/3:4/3;break;case Q.X12:U?b[r1]+=13/3:u.default.getX12Value(T)!=u.default.CONSTANTS.InvalidTripletValue?b[r1]+=2/3:b[r1]+=10/3;break;case Q.EDIFACT:U?b[r1]+=4.25:u.default.getEDIFACTValue(T)!=u.default.CONSTANTS.InvalidTripletValue?b[r1]+=.75:b[r1]+=3.25;break;case Q.Base256:b[r1]+=1}}),G=[Q.ASCII,Q.Base256,Q.EDIFACT,Q.Text,Q.X12,Q.C40],3=r)return i=!0,"break"};e=u.default.CONSTANTS.MaxLookAheadOffset||i){for(N=R=0;N3116*(Q?16:1))throw new y.TextTooLargeException;if(i=t=r=e=n=0,D!=="squareAuto"&&D!=="rectangularAuto"?L=u.default.getSymbolInfo(D):D==="rectangularAuto"&&(L=u.default.getSymbolInfo("rectangular16x48")),this.symbolInfo=L,Q||(n=(R=this.preEncode(n,e)).s_pos,e=R.c_pos),h=L.symbolDataCapacity,r=Q?(h-=4,4):(h-=e,e),!this.checkValue(n))throw new y.InvalidTextException(E);for(b=void 0;t<(Q?u.default.CONSTANTS.MaxStructures:1)&&nw.default.getSymbolSizeInfo(r))throw new u.TextTooLargeException;return o+=30,(n=new C.default([])).putBitsMSF(w.default.Constants.getFormatID(s)<<27,5),r=this.crcProcess(s),n.putBitsLSF(r,16),n.putBitsLSF(e.length,9),this.encode(s,n),(r=new C.default(i)).putBitsLSF(w.default.getECC(t).headerBits,a),n.offset=0,this.eccProcess(r,n,o),this.randomizeBits(),this.placeModule()}},{key:"eccProcess",value:function(s,a,o){var n,e,r,t,i,h,b,_,M;if((M=this.eccMode)==="ECC000")for(;a.offset>=1,e[t]=w.default.setBit(e[t],n.registerBits[t],a.fetchBit());for(i=!1,h=0;h=o){for(_=0;_>=1,!!(r[o]&1<=this.bitLength||!(this._data[~~(p/8)]&128>>p%8))}},{key:"setBit",value:function(p,y){var C=~~(p/8);p=(128>>p%8)%256,this._data[C]&=(this._data[C]&~p)%256,y&&(this._data[C]|=p)}},{key:"putBit",value:function(p){this.setBit(this.offset,p),this.offset++}},{key:"putBitsMSF",value:function(p,y,C){var f,m,g;for((g=!!C)||(C=this.offset),f=2147483648,m=0;m",role:"RIGHT_QUIET_ZONE"}),a}}]),C=s,A.default=C},function(K,A,S){var k,w,u,p,y,C;function f(a,o){for(var n,e=0;e",role:"NO_ADDON_RIGHT_QUIET_ZONE"}),a}},{key:"addon",value:function(a){var o,n,e,r,t=this,i=this.addOn,h=this.isTextGroup;if(i.length===2)n=o=r=void 0,r=u.default.get2DigitAddOnTable(i),o=this.encodeChar(i[0],r.leftStructure,0),n=this.encodeChar(i[1],r.rightStructure,0),h?(a.push({binary:u.default.ADD_ON_GUARD,role:"ADDON"}),a.push({binary:o,text:i[0],role:"ADDON"}),a.push({binary:u.default.ADD_ON_DELINEATOR,role:"ADDON"}),a.push({binary:n,text:i[1],role:"ADDON"})):a.push({binary:u.default.ADD_ON_GUARD+o+u.default.ADD_ON_DELINEATOR+n,text:i,role:"ADDON"});else{if(i.length!==5)throw new p.BadArgumentsException(i);e=u.default.get5DigitAddOnTable(i),h?(a.push({binary:u.default.ADD_ON_GUARD,role:"ADDON"}),(0,y.str2Array)(i).forEach(function(b,_){a.push({binary:t.encodeFor5DigitAddOn(b,_,e),text:b,role:"ADDON"}),_",role:"ADDON_RIGHT_QUIET_ZONE"})}},{key:"encodeFor5DigitAddOn",value:function(a,o,n){return u.default.TABLE[n[o]][a]}}]),C=s,A.default=C},function(K,A,S){var k;function w(f){return f&&f.__esModule?f:{default:f}}function u(f,m){if(!(f instanceof m))throw new TypeError("Cannot call a class as a function")}function p(f,m){if(f)return!m||typeof m!="object"&&typeof m!="function"?f:m;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function y(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);f.prototype=Object.create(m&&m.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(f,m):f.__proto__=m)}function C(f){return u(this,C),p(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,f,!0))}Object.defineProperty(A,"__esModule",{value:!0}),k=w(S(2)),y(C,(S=w(S=S(11))).default),S=C,A.default=S,k.default.registerEncoder("GS1_128",S)},function(K,A,S){var k,w,u,p,y,C,f,m,g;function c(e,r){for(var t,i=0;ip.default.MAX_DATA_NUM||h.length>i)throw new m.TextTooLargeException;for(;h.length@[\\]_\`~!\r ,: -.$/"|*()?{}'\u2003`],c={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]}},A.default={defaultConfig:{errorCorrectionLevel:"auto",columns:"auto",rows:"auto",compact:!(u={ll:"\u2000",ps:"\u2001",ml:"\u2002",al:"\u2003",pl:"\u2004",as:"\u2005"}),height:60,quietZone:{top:2,left:2,right:2,bottom:2}},compaction:i,getIndicator:h,MODE_TC:y=S=900,MODE_BC:C=901,MODE_NC:f=902,MODE_BC6:m=924,MODE_BC_SHIFT:g=913,getTCValue:_,PAD:S,createModules:O,getPattern:b,START:"11111111010101000",END:"111111101000101001",getAutoECL:R,subModeMap:u,getTCSubModeValue:M,MAX_DATA_NUM:925,COMPACT_END:"1",getAutoRowAndCol:N}},function(K,A,S){var k,w;function u(p,y){var C=w[y],f=Math.pow(2,y+1),m=(0,k.fillArray)(new Array(f),0);return p.forEach(function(g){for(var c=g+m[f-1],l=void 0,s=f-1;0v;)X[I]=0,I||(++q,X=[1].concat(X));for(V=X.length;!X[--V];);for(e1=0,d="";e1<=V;d+=g.charAt(X[e1++]));d=O(d,q)}return d}function T1(d,v,B){var Z,I,q,V=0,j=d.length,W=v%o,X=v/o|0;for(d=d.slice();j--;)V=((I=W*(q=d[j]%o)+(Z=X*q+(q=d[j]/o|0)*W)%o*o+V)/B|0)+(Z/o|0)+X*q,d[j]=I%B;return V?[V].concat(d):d}function M1(d,v,B,Z){var I,q;if(B!=Z)q=Zv[I]?1:-1;break}return q}function D1(d,v,B,Z){for(var I=0;B--;)d[B]-=I,I=d[B]s1?d.c=d.e=null:B=e1.length){if(!Z)break e;for(;e1.length<=X;e1.push(0));W=l1=0,V=(q%=l)-l+(I=1)}else{for(W=j=e1[X],I=1;10<=j;j/=10,I++);l1=(V=(q%=l)-l+I)<0?0:W/c1[I-V-1]%10|0}if(Z=Z||v<0||e1[X+1]!=null||(V<0?W:W%c1[I-V-1]),Z=B<4?(l1||Z)&&(B==0||B==(d.s<0?3:2)):5s1?d.c=d.e=null:d.e"u")&&crypto&&(crypto.getRandomValues||crypto.randomBytes)?r1=!0:i1?w1(2,"crypto unavailable",d?void 0:crypto):r1=!1:r1=!1:i1&&w1(2,v+C,d)),Z[v]=r1,V(v="MODULO_MODE")&&o1(d,0,9,2,v)&&(h1=0|d),Z[v]=h1,V(v="POW_PRECISION")&&o1(d,0,n,2,v)&&(a1=0|d),Z[v]=a1,V(v="FORMAT")&&(typeof d=="object"?d1=d:i1&&w1(2,v+" not an object",d)),Z[v]=d1,Z},$.max=function(){return R1(arguments,P.lt)},$.min=function(){return R1(arguments,P.gt)},$.random=(D=9007199254740992,Q=Math.random()*D&2097151?function(){return y(Math.random()*D)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(d){var v,B,Z,I,q,V=0,j=[],W=new $(H);if(d=d!=null&&o1(d,0,n,14)?0|d:n1,I=p(d/l),r1)if(crypto.getRandomValues){for(v=crypto.getRandomValues(new Uint32Array(I*=2));V>>11))?(B=crypto.getRandomValues(new Uint32Array(2)),v[V]=B[0],v[V+1]=B[1]):(j.push(q%1e14),V+=2);V=I/2}else if(crypto.randomBytes){for(v=crypto.randomBytes(I*=7);V(_1[j]||0)&&V--,O1<0)S1.push(1),W=!0;else{for(V1=_1.length,E1=b1.length,O1+=2,1<(X=y(I/(b1[j=0]+1)))&&(b1=T1(b1,X,I),_1=T1(_1,X,I),E1=b1.length,V1=_1.length),A1=E1,m1=(p1=_1.slice(0,E1)).length;m1=I/2&&Z1++;do if(X=0,(q=M1(b1,p1,E1,m1))<0){if(x1=p1[0],E1!=m1&&(x1=x1*I+(p1[1]||0)),1<(X=y(x1/Z1)))for(e1=(l1=T1(b1,X=I<=X?I-1:X,I)).length,m1=p1.length;M1(l1,p1,e1,m1)==1;)X--,D1(l1,E1this.c.length-2},P.isNaN=function(){return!this.s},P.isNegative=P.isNeg=function(){return this.s<0},P.isZero=function(){return!!this.c&&this.c[0]==0},P.lessThan=P.lt=function(d,v){return G=8,i(this,new $(d,v))<0},P.lessThanOrEqualTo=P.lte=function(d,v){return G=9,(v=i(this,new $(d,v)))===-1||v===0},P.minus=P.sub=function(d,v){var B,Z,I,q,V,j,W,X,l1,e1=(l1=this).s;if(G=10,v=(d=new $(d,v)).s,!e1||!v)return new $(NaN);if(e1!=v)return d.s=-v,l1.plus(d);if(V=l1.e/l,j=d.e/l,W=l1.c,X=d.c,!V||!j){if(!W||!X)return W?(d.s=-v,d):new $(X?l1:NaN);if(!W[0]||!X[0])return X[0]?(d.s=-v,d):new $(W[0]?l1:t1==3?-0:0)}if(V=r(V),j=r(j),W=W.slice(),e1=V-j){for((I=(q=e1<0)?(e1=-e1,W):(j=V,X)).reverse(),v=e1;v--;I.push(0));I.reverse()}else for(Z=(q=(e1=W.length)<(v=X.length))?e1:v,e1=v=0;vv?Z.e+1:v},P.round=function(d,v){var B=new $(this);return d!=null&&!o1(d,0,n,15)||C1(B,~~d+this.e+1,v!=null&&o1(v,0,8,15,f)?0|v:t1),B},P.shift=function(d){var v=this;return o1(d,-s,s,16,"argument")?v.times("1e"+R(d)):new $(v.c&&v.c[0]&&(d<-s||sB&&(Z.c.length=B):v&&(Z=Z.mod(v))}if(!(q=y(q/2)))break;V=V.times(V),B?V.c&&V.c.length>B&&(V.c.length=B):v&&(V=V.mod(v))}return v?Z:(d<0&&(Z=H.div(Z)),I?Z.mod(I):B?C1(Z,a1,t1):Z)},P.toPrecision=function(d,v){return I1(this,d!=null&&o1(d,1,n,24,"precision")?0|d:null,v,24)},P.toString=function(d){var v,B=this,Z=B.s,I=B.e;return I===null?Z?(v="Infinity",Z<0&&(v="-"+v)):v="NaN":(v=t(B.c),v=d!=null&&o1(d,2,64,25,"base")?v1(O(v,I),0|d,10,Z):(I<=Y||u1<=I?M:O)(v,I),Z<0&&B.c[0]&&(v="-"+v)),v},P.truncated=P.trunc=function(){return C1(new $(this),this.e+1,1)},P.valueOf=P.toJSON=function(){var d,v=this,B=v.e;return B===null?v.toString():(d=t(v.c),d=(B<=Y||u1<=B?M:O)(d,B),v.s<0?"-"+d:d)},P.isBigNumber=!0,N!=null&&$.config(N),$}function r(N){var E=0|N;return 0F[L]^z?1:-1;return N==E?0:E=E&&N<=z}function b(N){return Object.prototype.toString.call(N)=="[object Array]"}function _(N,E,z){for(var D,Q,F=[0],L=0,T=N.length;L(z=N.length)){for(D="0",E-=z;--E;D+="0");N+=D}else E>M&1,h[Math.floor(M/3)][M%3+i-8-3]=t,h[M%3+i-8-3][Math.floor(M/3)]=t}},{key:"fillDataModules",value:function(t,i,h){for(var b,_,M,O=-1,R=(M=t.length)-1,N=7,E=0,z=M-1;0>>N&1)==1),h(R,z-b)&&(_=!_),t[R][z-b]=+_,--N==-1)&&(E+=1,N=7);if((R+=O)<0||M<=R){R-=O,O=-O;break}}return t}},{key:"getMatrix",value:function(){var t=this.charCode;return t=this.analysisData(t),t=this.encodeData(t),t=this.processConnection(t),this.padBuffer(t),t=this.generateErrorCorrectionCode(t),t=this.getFinalMessage(t),this.setModules(t),this.modules}}]),S=r,A.default=S},function(K,A,S){function k(u){return u&&u.__esModule?u:{default:u}}function w(u){var p;return(p=document.createElement("div")).style.visibility="hidden",p.style.absolute="hidden",p.style.padding="0",p.style.border="0",p.style.width=u,document.body.appendChild(p),u=p.getBoundingClientRect(),document.body.removeChild(p),u.width}k(S(2)).default.registerPlugin("convertUnit",w)},function(K,A,S){function k(u){return u&&u.__esModule?u:{default:u}}function w(u,p){var y;return(y=document.createElement("span")).style.visibility="hidden",y.style.absolute="hidden",y.style.lineHeight="1",y.textContent=u,Object.keys(p).forEach(function(C){y.style[C]=p[C]}),document.body.appendChild(y),u=y.getBoundingClientRect(),document.body.removeChild(y),u.height}k(S(2)).default.registerPlugin("measureText",w)}],N1={},J.m=y1,J.c=N1,J.d=function(K,A,S){J.o(K,A)||Object.defineProperty(K,A,{configurable:!1,enumerable:!0,get:S})},J.n=function(K){var A=K&&K.__esModule?function(){return K.default}:function(){return K};return J.d(A,"a",A),A},J.o=function(K,A){return Object.prototype.hasOwnProperty.call(K,A)},J.p="",J(J.s=20).default;function J(K){var A;return(N1[K]||(A=N1[K]={i:K,l:!1,exports:{}},y1[K].call(A.exports,A,A.exports,J),A.l=!0,A)).exports}var y1,N1}()},Common:function(g1){g1.exports=k1.Spread},CalcEngine:function(g1){g1.exports=k1.Spread.CalcEngine},Core:function(g1){g1.exports=k1.Spread.Sheets},Sparkline:function(g1){g1.exports=k1.Spread.Sheets.Sparklines}},F1={},L1={},function(){var g1,J=L1;Object.defineProperty(J,"__esModule",{value:!0}),J.generatePaintBarcodeViewModel=J.QRCode=J.PDF417=J.GS1_128=J.EAN8=J.EAN13=J.DataMatrix=J.Code93=J.Code49=J.Code39=J.Code128=J.Codabar=J.BarcodeBase=void 0,g1=z1("./dist/plugins/barcode/barcodeSparkline.js"),Object.defineProperty(J,"BarcodeBase",{enumerable:!0,get:function(){return g1.BarcodeBase}}),Object.defineProperty(J,"Codabar",{enumerable:!0,get:function(){return g1.Codabar}}),Object.defineProperty(J,"Code128",{enumerable:!0,get:function(){return g1.Code128}}),Object.defineProperty(J,"Code39",{enumerable:!0,get:function(){return g1.Code39}}),Object.defineProperty(J,"Code49",{enumerable:!0,get:function(){return g1.Code49}}),Object.defineProperty(J,"Code93",{enumerable:!0,get:function(){return g1.Code93}}),Object.defineProperty(J,"DataMatrix",{enumerable:!0,get:function(){return g1.DataMatrix}}),Object.defineProperty(J,"EAN13",{enumerable:!0,get:function(){return g1.EAN13}}),Object.defineProperty(J,"EAN8",{enumerable:!0,get:function(){return g1.EAN8}}),Object.defineProperty(J,"GS1_128",{enumerable:!0,get:function(){return g1.GS1_128}}),Object.defineProperty(J,"PDF417",{enumerable:!0,get:function(){return g1.PDF417}}),Object.defineProperty(J,"QRCode",{enumerable:!0,get:function(){return g1.QRCode}}),Object.defineProperty(J,"generatePaintBarcodeViewModel",{enumerable:!0,get:function(){return g1.generatePaintBarcodeViewModel}})}(),(((k1=k1===void 0?{}:k1).Spread=k1.Spread||{}).Sheets=k1.Spread.Sheets||{}).Barcode=L1})(U1);