"use strict";var JsBarcode=(()=>{var f=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(n){throw e=0,n}};var l=f(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});function qr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Lr=function t(e,n){qr(this,t),this.data=e,this.text=n.text||e,this.options=n};ie.default=Lr});var dt=f(X=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0});X.CODE39=void 0;var jr=(function(){function t(e,n){for(var r=0;r{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var D;function ue(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var _t=c.SET_A=0,vt=c.SET_B=1,st=c.SET_C=2,Hf=c.SHIFT=98,Jr=c.START_A=103,Wr=c.START_B=104,Qr=c.START_C=105,Ff=c.MODULO=103,$f=c.STOP=106,Uf=c.FNC1=207,Xf=c.SET_BY_CODE=(D={},ue(D,Jr,_t),ue(D,Wr,vt),ue(D,Qr,st),D),zf=c.SWAP={101:_t,100:vt,99:st},Vf=c.A_START_CHAR="\xD0",Yf=c.B_START_CHAR="\xD1",Jf=c.C_START_CHAR="\xD2",Wf=c.A_CHARS="[\0-_\xC8-\xCF]",Qf=c.B_CHARS="[ -\x7F\xC8-\xCF]",Zf=c.C_CHARS="(\xCF*[0-9]{2}\xCF*)",Kf=c.BARS=[11011001100,11001101100,11001100110,10010011e3,10010001100,10001001100,10011001e3,10011000100,10001100100,11001001e3,11001000100,11000100100,10110011100,10011011100,10011001110,10111001100,10011101100,10011100110,11001110010,11001011100,11001001110,11011100100,11001110100,11101101110,11101001100,11100101100,11100100110,11101100100,11100110100,11100110010,11011011e3,11011000110,11000110110,10100011e3,10001011e3,10001000110,10110001e3,10001101e3,10001100010,11010001e3,11000101e3,11000100010,10110111e3,10110001110,10001101110,10111011e3,10111000110,10001110110,11101110110,11010001110,11000101110,11011101e3,11011100010,11011101110,11101011e3,11101000110,11100010110,11101101e3,11101100010,11100011010,11101111010,11001000010,11110001010,1010011e4,10100001100,1001011e4,10010000110,10000101100,10000100110,1011001e4,10110000100,1001101e4,10011000010,10000110100,10000110010,11000010010,1100101e4,11110111010,11000010100,10001111010,10100111100,10010111100,10010011110,10111100100,10011110100,10011110010,11110100100,11110010100,11110010010,11011011110,11011110110,11110110110,10101111e3,10100011110,10001011110,10111101e3,10111100010,11110101e3,11110100010,10111011110,10111101110,11101011110,11110101110,11010000100,1101001e4,11010011100,1100011101011]});var B=f(oe=>{"use strict";Object.defineProperty(oe,"__esModule",{value:!0});var Zr=(function(){function t(e,n){for(var r=0;r=200){o=r.shift()-105;var s=d.SWAP[o];s!==void 0?u=e.next(r,i+1,s):((a===d.SET_A||a===d.SET_B)&&o===d.SHIFT&&(r[0]=a===d.SET_A?r[0]>95?r[0]-96:r[0]:r[0]<32?r[0]+96:r[0]),u=e.next(r,i+1,a))}else o=e.correctIndex(r,a),u=e.next(r,i+1,a);var g=e.getBar(o),Br=o*i;return{result:g+u.result,checksum:Br+u.checksum}}}]),e})(en.default);oe.default=un});var Et=f(ce=>{"use strict";Object.defineProperty(ce,"__esModule",{value:!0});var O=m(),yt=function(e){return e.match(new RegExp("^"+O.A_CHARS+"*"))[0].length},pt=function(e){return e.match(new RegExp("^"+O.B_CHARS+"*"))[0].length},gt=function(e){return e.match(new RegExp("^"+O.C_CHARS+"*"))[0]};function fe(t,e){var n=e?O.A_CHARS:O.B_CHARS,r=t.match(new RegExp("^("+n+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(r)return r[1]+"\xCC"+Ot(t.substring(r[1].length));var i=t.match(new RegExp("^"+n+"+"))[0];return i.length===t.length?t:i+String.fromCharCode(e?205:206)+fe(t.substring(i.length),!e)}function Ot(t){var e=gt(t),n=e.length;if(n===t.length)return t;t=t.substring(n);var r=yt(t)>=pt(t);return e+String.fromCharCode(r?206:205)+fe(t,r)}ce.default=function(t){var e=void 0,n=gt(t).length;if(n>=2)e=O.C_START_CHAR+Ot(t);else{var r=yt(t)>pt(t);e=(r?O.A_START_CHAR:O.B_START_CHAR)+fe(t,r)}return e.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,function(i,a){return"\xCB"+a})}});var wt=f(he=>{"use strict";Object.defineProperty(he,"__esModule",{value:!0});var on=B(),fn=bt(on),cn=Et(),ln=bt(cn);function bt(t){return t&&t.__esModule?t:{default:t}}function hn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function le(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function dn(t,e){if(typeof e!="function"&&e!==null)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)}var _n=(function(t){dn(e,t);function e(n,r){if(hn(this,e),/^[\x00-\x7F\xC8-\xD3]+$/.test(n))var i=le(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,(0,ln.default)(n),r));else var i=le(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n,r));return le(i)}return e})(fn.default);he.default=_n});var St=f(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});var vn=(function(){function t(e,n){for(var r=0;r{"use strict";Object.defineProperty(_e,"__esModule",{value:!0});var wn=(function(){function t(e,n){for(var r=0;r{"use strict";Object.defineProperty(ve,"__esModule",{value:!0});var Mn=(function(){function t(e,n){for(var r=0;r{"use strict";Object.defineProperty(y,"__esModule",{value:!0});y.CODE128C=y.CODE128B=y.CODE128A=y.CODE128=void 0;var Nn=wt(),Cn=z(Nn),Gn=St(),Hn=z(Gn),Fn=Rt(),$n=z(Fn),Un=Tt(),Xn=z(Un);function z(t){return t&&t.__esModule?t:{default:t}}y.CODE128=Cn.default;y.CODE128A=Hn.default;y.CODE128B=$n.default;y.CODE128C=Xn.default});var S=f(E=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});var f0=E.SIDE_BIN="101",c0=E.MIDDLE_BIN="01010",l0=E.BINARIES={L:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],G:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"],R:["1110010","1100110","1101100","1000010","1011100","1001110","1010000","1000100","1001000","1110100"],O:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],E:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"]},h0=E.EAN2_STRUCTURE=["LL","LG","GL","GG"],d0=E.EAN5_STRUCTURE=["GGLLL","GLGLL","GLLGL","GLLLG","LGGLL","LLGGL","LLLGG","LGLGL","LGLLG","LLGLG"],_0=E.EAN13_STRUCTURE=["LLLLLL","LLGLGG","LLGGLG","LLGGGL","LGLLGG","LGGLLG","LGGGLL","LGLGLG","LGLGGL","LGGLGL"]});var x=f(se=>{"use strict";Object.defineProperty(se,"__esModule",{value:!0});var zn=S(),Vn=function(e,n,r){var i=e.split("").map(function(u,o){return zn.BINARIES[n[o]]}).map(function(u,o){return u?u[e[o]]:""});if(r){var a=e.length-1;i=i.map(function(u,o){return o{"use strict";Object.defineProperty(ye,"__esModule",{value:!0});var Yn=(function(){function t(e,n){for(var r=0;rr.width*10?r.width*10:r.fontSize,i.guardHeight=r.height+i.fontSize/2+r.textMargin,i}return Yn(e,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(r,i){return this.text.substr(r,i)}},{key:"leftEncode",value:function(r,i){return(0,Mt.default)(r,i)}},{key:"rightText",value:function(r,i){return this.text.substr(r,i)}},{key:"rightEncode",value:function(r,i){return(0,Mt.default)(r,i)}},{key:"encodeGuarded",value:function(){var r={fontSize:this.fontSize},i={height:this.guardHeight};return[{data:R.SIDE_BIN,options:i},{data:this.leftEncode(),text:this.leftText(),options:r},{data:R.MIDDLE_BIN,options:i},{data:this.rightEncode(),text:this.rightText(),options:r},{data:R.SIDE_BIN,options:i}]}},{key:"encodeFlat",value:function(){var r=[R.SIDE_BIN,this.leftEncode(),R.MIDDLE_BIN,this.rightEncode(),R.SIDE_BIN];return{data:r.join(""),text:this.text}}}]),e})(Qn.default);ye.default=ti});var Dt=f(ge=>{"use strict";Object.defineProperty(ge,"__esModule",{value:!0});var ri=(function(){function t(e,n){for(var r=0;r{"use strict";Object.defineProperty(Oe,"__esModule",{value:!0});var hi=(function(){function t(e,n){for(var r=0;r{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});var Oi=(function(){function t(e,n){for(var r=0;r{"use strict";Object.defineProperty(be,"__esModule",{value:!0});var Mi=(function(){function t(e,n){for(var r=0;r{"use strict";Object.defineProperty(Y,"__esModule",{value:!0});var Gi=(function(){function t(e,n){for(var r=0;rr.width*10?i.fontSize=r.width*10:i.fontSize=r.fontSize,i.guardHeight=r.height+i.fontSize/2+r.textMargin,i}return Gi(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{12}$/)!==-1&&this.data[11]==we(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var r="";return r+="101",r+=(0,A.default)(this.data.substr(0,6),"LLLLLL"),r+="01010",r+=(0,A.default)(this.data.substr(6,6),"RRRRRR"),r+="101",{data:r,text:this.text}}},{key:"guardedEncoding",value:function(){var r=[];return this.displayValue&&r.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),r.push({data:"101"+(0,A.default)(this.data[0],"L"),options:{height:this.guardHeight}}),r.push({data:(0,A.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),r.push({data:"01010",options:{height:this.guardHeight}}),r.push({data:(0,A.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),r.push({data:(0,A.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&r.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),r}}]),e})($i.default);function we(t){var e=0,n;for(n=1;n<11;n+=2)e+=parseInt(t[n]);for(n=0;n<11;n+=2)e+=parseInt(t[n])*3;return(10-e%10)%10}Y.default=Vi});var $t=f(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});var Yi=(function(){function t(e,n){for(var r=0;rr.width*10?i.fontSize=r.width*10:i.fontSize=r.fontSize,i.guardHeight=r.height+i.fontSize/2+r.textMargin,i}return Yi(e,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var r="";return r+="101",r+=this.encodeMiddleDigits(),r+="010101",{data:r,text:this.text}}},{key:"guardedEncoding",value:function(){var r=[];return this.displayValue&&r.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),r.push({data:"101",options:{height:this.guardHeight}}),r.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),r.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&r.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),r}},{key:"encodeMiddleDigits",value:function(){var r=this.upcA[0],i=this.upcA[this.upcA.length-1],a=na[parseInt(i)][parseInt(r)];return(0,Wi.default)(this.middleDigits,a)}}]),e})(Zi.default);function Ht(t,e){for(var n=parseInt(t[t.length-1]),r=ra[n],i="",a=0,u=0;u{"use strict";Object.defineProperty(h,"__esModule",{value:!0});h.UPCE=h.UPC=h.EAN2=h.EAN5=h.EAN8=h.EAN13=void 0;var aa=Dt(),ua=T(aa),oa=qt(),fa=T(oa),ca=jt(),la=T(ca),ha=Ct(),da=T(ha),_a=me(),va=T(_a),sa=$t(),ya=T(sa);function T(t){return t&&t.__esModule?t:{default:t}}h.EAN13=ua.default;h.EAN8=fa.default;h.EAN5=la.default;h.EAN2=da.default;h.UPC=va.default;h.UPCE=ya.default});var Xt=f(L=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});var S0=L.START_BIN="1010",x0=L.END_BIN="11101",R0=L.BINARIES=["00110","10001","01001","11000","00101","10100","01100","00011","10010","01010"]});var Ae=f(Re=>{"use strict";Object.defineProperty(Re,"__esModule",{value:!0});var pa=(function(){function t(e,n){for(var r=0;r{"use strict";Object.defineProperty(Te,"__esModule",{value:!0});var xa=(function(){function t(e,n){for(var r=0;r{"use strict";Object.defineProperty(P,"__esModule",{value:!0});P.ITF14=P.ITF=void 0;var Da=Ae(),Ba=Yt(Da),qa=Vt(),La=Yt(qa);function Yt(t){return t&&t.__esModule?t:{default:t}}P.ITF=Ba.default;P.ITF14=La.default});var M=f(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});var ja=(function(){function t(e,n){for(var r=0;r{"use strict";Object.defineProperty(W,"__esModule",{value:!0});W.mod10=za;W.mod11=Va;function za(t){for(var e=0,n=0;n{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});var Ya=M(),Ja=Qa(Ya),Wa=j();function Qa(t){return t&&t.__esModule?t:{default:t}}function Za(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ka(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function eu(t,e){if(typeof e!="function"&&e!==null)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)}var tu=(function(t){eu(e,t);function e(n,r){return Za(this,e),Ka(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n+(0,Wa.mod10)(n),r))}return e})(Ja.default);Me.default=tu});var Qt=f(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});var ru=M(),nu=au(ru),iu=j();function au(t){return t&&t.__esModule?t:{default:t}}function uu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ou(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function fu(t,e){if(typeof e!="function"&&e!==null)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)}var cu=(function(t){fu(e,t);function e(n,r){return uu(this,e),ou(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n+(0,iu.mod11)(n),r))}return e})(nu.default);Ie.default=cu});var Kt=f(ke=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});var lu=M(),hu=du(lu),Zt=j();function du(t){return t&&t.__esModule?t:{default:t}}function _u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function vu(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function su(t,e){if(typeof e!="function"&&e!==null)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)}var yu=(function(t){su(e,t);function e(n,r){return _u(this,e),n+=(0,Zt.mod10)(n),n+=(0,Zt.mod10)(n),vu(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n,r))}return e})(hu.default);ke.default=yu});var tr=f(De=>{"use strict";Object.defineProperty(De,"__esModule",{value:!0});var pu=M(),gu=Ou(pu),er=j();function Ou(t){return t&&t.__esModule?t:{default:t}}function Eu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function bu(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function wu(t,e){if(typeof e!="function"&&e!==null)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)}var mu=(function(t){wu(e,t);function e(n,r){return Eu(this,e),n+=(0,er.mod11)(n),n+=(0,er.mod10)(n),bu(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n,r))}return e})(gu.default);De.default=mu});var rr=f(_=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0});_.MSI1110=_.MSI1010=_.MSI11=_.MSI10=_.MSI=void 0;var Su=M(),xu=N(Su),Ru=Wt(),Au=N(Ru),Tu=Qt(),Pu=N(Tu),Mu=Kt(),Iu=N(Mu),ku=tr(),Du=N(ku);function N(t){return t&&t.__esModule?t:{default:t}}_.MSI=xu.default;_.MSI10=Au.default;_.MSI11=Pu.default;_.MSI1010=Iu.default;_.MSI1110=Du.default});var nr=f(Q=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});Q.pharmacode=void 0;var Bu=(function(){function t(e,n){for(var r=0;r=3&&this.number<=131070}}]),e})(Lu.default);Q.pharmacode=Hu});var ir=f(Z=>{"use strict";Object.defineProperty(Z,"__esModule",{value:!0});Z.codabar=void 0;var Fu=(function(){function t(e,n){for(var r=0;r{"use strict";Object.defineProperty(C,"__esModule",{value:!0});var G0=C.SYMBOLS=["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","-","."," ","$","/","+","%","($)","(%)","(/)","(+)","\xFF"],H0=C.BINARIES=["100010100","101001000","101000100","101000010","100101000","100100100","100100010","101010000","100010010","100001010","110101000","110100100","110100010","110010100","110010010","110001010","101101000","101100100","101100010","100110100","100011010","101011000","101001100","101000110","100101100","100010110","110110100","110110010","110101100","110100110","110010110","110011010","101101100","101100110","100110110","100111010","100101110","111010100","111010010","111001010","101101110","101110110","110101110","100100110","111011010","111010110","100110010","101011110"],F0=C.MULTI_SYMBOLS={"\0":["(%)","U"],"":["($)","A"],"":["($)","B"],"":["($)","C"],"":["($)","D"],"":["($)","E"],"":["($)","F"],"\x07":["($)","G"],"\b":["($)","H"]," ":["($)","I"],"\n":["($)","J"],"\v":["($)","K"],"\f":["($)","L"],"\r":["($)","M"],"":["($)","N"],"":["($)","O"],"":["($)","P"],"":["($)","Q"],"":["($)","R"],"":["($)","S"],"":["($)","T"],"":["($)","U"],"":["($)","V"],"":["($)","W"],"":["($)","X"],"":["($)","Y"],"":["($)","Z"],"\x1B":["(%)","A"],"":["(%)","B"],"":["(%)","C"],"":["(%)","D"],"":["(%)","E"],"!":["(/)","A"],'"':["(/)","B"],"#":["(/)","C"],"&":["(/)","F"],"'":["(/)","G"],"(":["(/)","H"],")":["(/)","I"],"*":["(/)","J"],",":["(/)","L"],":":["(/)","Z"],";":["(%)","F"],"<":["(%)","G"],"=":["(%)","H"],">":["(%)","I"],"?":["(%)","J"],"@":["(%)","V"],"[":["(%)","K"],"\\":["(%)","L"],"]":["(%)","M"],"^":["(%)","N"],_:["(%)","O"],"`":["(%)","W"],a:["(+)","A"],b:["(+)","B"],c:["(+)","C"],d:["(+)","D"],e:["(+)","E"],f:["(+)","F"],g:["(+)","G"],h:["(+)","H"],i:["(+)","I"],j:["(+)","J"],k:["(+)","K"],l:["(+)","L"],m:["(+)","M"],n:["(+)","N"],o:["(+)","O"],p:["(+)","P"],q:["(+)","Q"],r:["(+)","R"],s:["(+)","S"],t:["(+)","T"],u:["(+)","U"],v:["(+)","V"],w:["(+)","W"],x:["(+)","X"],y:["(+)","Y"],z:["(+)","Z"],"{":["(%)","P"],"|":["(%)","Q"],"}":["(%)","R"],"~":["(%)","S"],"\x7F":["(%)","T"]}});var qe=f(Be=>{"use strict";Object.defineProperty(Be,"__esModule",{value:!0});var Wu=(function(){function t(e,n){for(var r=0;r{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});var io=(function(){function t(e,n){for(var r=0;r{"use strict";Object.defineProperty(I,"__esModule",{value:!0});I.CODE93FullASCII=I.CODE93=void 0;var _o=qe(),vo=or(_o),so=ur(),yo=or(so);function or(t){return t&&t.__esModule?t:{default:t}}I.CODE93=vo.default;I.CODE93FullASCII=yo.default});var cr=f(ee=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0});ee.GenericBarcode=void 0;var po=(function(){function t(e,n){for(var r=0;r{"use strict";Object.defineProperty(je,"__esModule",{value:!0});var xo=dt(),te=Pt(),k=Ut(),lr=Jt(),G=rr(),Ro=nr(),Ao=ir(),hr=fr(),To=cr();je.default={CODE39:xo.CODE39,CODE128:te.CODE128,CODE128A:te.CODE128A,CODE128B:te.CODE128B,CODE128C:te.CODE128C,EAN13:k.EAN13,EAN8:k.EAN8,EAN5:k.EAN5,EAN2:k.EAN2,UPC:k.UPC,UPCE:k.UPCE,ITF14:lr.ITF14,ITF:lr.ITF,MSI:G.MSI,MSI10:G.MSI10,MSI11:G.MSI11,MSI1010:G.MSI1010,MSI1110:G.MSI1110,pharmacode:Ro.pharmacode,codabar:Ao.codabar,CODE93:hr.CODE93,CODE93FullASCII:hr.CODE93FullASCII,GenericBarcode:To.GenericBarcode}});var H=f(Ne=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});var Po=Object.assign||function(t){for(var e=1;e{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.default=Mo;function Mo(t){var e=[];function n(r){if(Array.isArray(r))for(var i=0;i{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.default=Io;function Io(t){return t.marginTop=t.marginTop||t.margin,t.marginBottom=t.marginBottom||t.margin,t.marginRight=t.marginRight||t.margin,t.marginLeft=t.marginLeft||t.margin,t}});var Fe=f(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.default=ko;function ko(t){var e=["width","height","textMargin","fontSize","margin","marginTop","marginBottom","marginLeft","marginRight"];for(var n in e)e.hasOwnProperty(n)&&(n=e[n],typeof t[n]=="string"&&(t[n]=parseInt(t[n],10)));return typeof t.displayValue=="string"&&(t.displayValue=t.displayValue!="false"),t}});var Ue=f($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});var Do={width:2,height:100,format:"auto",displayValue:!0,fontOptions:"",font:"monospace",text:void 0,textAlign:"center",textPosition:"bottom",textMargin:2,fontSize:20,background:"#ffffff",lineColor:"#000000",margin:10,marginTop:void 0,marginBottom:void 0,marginLeft:void 0,marginRight:void 0,valid:function(){}};$e.default=Do});var pr=f(Xe=>{"use strict";Object.defineProperty(Xe,"__esModule",{value:!0});var Bo=Fe(),qo=yr(Bo),Lo=Ue(),sr=yr(Lo);function yr(t){return t&&t.__esModule?t:{default:t}}function jo(t){var e={};for(var n in sr.default)sr.default.hasOwnProperty(n)&&(t.hasAttribute("jsbarcode-"+n.toLowerCase())&&(e[n]=t.getAttribute("jsbarcode-"+n.toLowerCase())),t.hasAttribute("data-"+n.toLowerCase())&&(e[n]=t.getAttribute("data-"+n.toLowerCase())));return e.value=t.getAttribute("jsbarcode-value")||t.getAttribute("data-value"),e=(0,qo.default)(e),e}Xe.default=jo});var ze=f(v=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0});v.getTotalWidthOfEncodings=v.calculateEncodingAttributes=v.getBarcodePadding=v.getEncodingHeight=v.getMaximumHeightOfEncodings=void 0;var No=H(),Co=Go(No);function Go(t){return t&&t.__esModule?t:{default:t}}function gr(t,e){return e.height+(e.displayValue&&t.text.length>0?e.fontSize+e.textMargin:0)+e.marginTop+e.marginBottom}function Or(t,e,n){if(n.displayValue&&ee&&(e=t[n].height);return e}function Uo(t,e,n){var r;if(n)r=n;else if(typeof document<"u")r=document.createElement("canvas").getContext("2d");else return 0;r.font=e.fontOptions+" "+e.fontSize+"px "+e.font;var i=r.measureText(t);if(!i)return 0;var a=i.width;return a}v.getMaximumHeightOfEncodings=$o;v.getEncodingHeight=gr;v.getBarcodePadding=Or;v.calculateEncodingAttributes=Ho;v.getTotalWidthOfEncodings=Fo});var Er=f(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});var Xo=(function(){function t(e,n){for(var r=0;r0?(u=0,i.textAlign="left"):n.textAlign=="right"?(u=r.width-1,i.textAlign="right"):(u=r.width/2,i.textAlign="center"),i.fillText(r.text,u,o)}}},{key:"moveCanvasDrawing",value:function(n){var r=this.canvas.getContext("2d");r.translate(n.width,0)}},{key:"restoreCanvas",value:function(){var n=this.canvas.getContext("2d");n.restore()}}]),t})();Ye.default=Wo});var br=f(We=>{"use strict";Object.defineProperty(We,"__esModule",{value:!0});var Qo=(function(){function t(e,n){for(var r=0;r0&&(this.drawRect(s-r.width*o,u,r.width*o,r.height,n),o=0);o>0&&this.drawRect(s-r.width*(o-1),u,r.width*o,r.height,n)}},{key:"drawSVGText",value:function(n,r,i){var a=this.document.createElementNS(re,"text");if(r.displayValue){var u,o;a.setAttribute("font-family",r.font),a.setAttribute("font-size",r.fontSize),r.fontOptions.includes("bold")&&a.setAttribute("font-weight","bold"),r.fontOptions.includes("italic")&&a.setAttribute("font-style","italic"),r.textPosition=="top"?o=r.fontSize-r.textMargin:o=r.height+r.textMargin+r.fontSize,r.textAlign=="left"||i.barcodePadding>0?(u=0,a.setAttribute("text-anchor","start")):r.textAlign=="right"?(u=i.width-1,a.setAttribute("text-anchor","end")):(u=i.width/2,a.setAttribute("text-anchor","middle")),a.setAttribute("x",u),a.setAttribute("y",o),a.appendChild(this.document.createTextNode(i.text)),n.appendChild(a)}}},{key:"setSvgAttributes",value:function(n,r){var i=this.svg;i.setAttribute("width",n+"px"),i.setAttribute("height",r+"px"),i.setAttribute("x","0px"),i.setAttribute("y","0px"),i.setAttribute("viewBox","0 0 "+n+" "+r),i.setAttribute("xmlns",re),i.setAttribute("version","1.1")}},{key:"createGroup",value:function(n,r,i){var a=this.document.createElementNS(re,"g");return a.setAttribute("transform","translate("+n+", "+r+")"),i.appendChild(a),a}},{key:"setGroupOptions",value:function(n,r){n.setAttribute("fill",r.lineColor)}},{key:"drawRect",value:function(n,r,i,a,u){var o=this.document.createElementNS(re,"rect");return o.setAttribute("x",n),o.setAttribute("y",r),o.setAttribute("width",i),o.setAttribute("height",a),u.appendChild(o),o}}]),t})();We.default=rf});var wr=f(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});var nf=(function(){function t(e,n){for(var r=0;r{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});var of=Er(),ff=Ze(of),cf=br(),lf=Ze(cf),hf=wr(),df=Ze(hf);function Ze(t){return t&&t.__esModule?t:{default:t}}Ke.default={CanvasRenderer:ff.default,SVGRenderer:lf.default,ObjectRenderer:df.default}});var nt=f(F=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0});function et(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function tt(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function rt(t,e){if(typeof e!="function"&&e!==null)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)}var _f=(function(t){rt(e,t);function e(n,r){et(this,e);var i=tt(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return i.name="InvalidInputException",i.symbology=n,i.input=r,i.message='"'+i.input+'" is not a valid input for '+i.symbology,i}return e})(Error),vf=(function(t){rt(e,t);function e(){et(this,e);var n=tt(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n.name="InvalidElementException",n.message="Not supported type to render on",n}return e})(Error),sf=(function(t){rt(e,t);function e(){et(this,e);var n=tt(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n.name="NoElementException",n.message="No element to render on.",n}return e})(Error);F.InvalidInputException=_f;F.InvalidElementException=vf;F.NoElementException=sf});var xr=f(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});var yf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pf=pr(),it=Sr(pf),gf=mr(),$=Sr(gf),Of=nt();function Sr(t){return t&&t.__esModule?t:{default:t}}function at(t){if(typeof t=="string")return Ef(t);if(Array.isArray(t)){for(var e=[],n=0;n"u"?"undefined":yf(t))==="object"&&!t.nodeName)return{element:t,renderer:$.default.ObjectRenderer};throw new Of.InvalidElementException}}function Ef(t){var e=document.querySelectorAll(t);if(e.length!==0){for(var n=[],r=0;r{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});var wf=(function(){function t(e,n){for(var r=0;r{var xf=dr(),w=b(xf),Rf=H(),U=b(Rf),Af=_r(),Tr=b(Af),Tf=vr(),Ar=b(Tf),Pf=xr(),Mf=b(Pf),If=Fe(),kf=b(If),Df=Rr(),Bf=b(Df),Pr=nt(),qf=Ue(),Mr=b(qf);function b(t){return t&&t.__esModule?t:{default:t}}var p=function(){},ne=function(e,n,r){var i=new p;if(typeof e>"u")throw Error("No element to render on was provided.");return i._renderProperties=(0,Mf.default)(e),i._encodings=[],i._options=Mr.default,i._errorHandler=new Bf.default(i),typeof n<"u"&&(r=r||{},r.format||(r.format=kr()),i.options(r)[r.format](n,r).render()),i};ne.getModule=function(t){return w.default[t]};for(ft in w.default)w.default.hasOwnProperty(ft)&&Lf(w.default,ft);var ft;function Lf(t,e){p.prototype[e]=p.prototype[e.toUpperCase()]=p.prototype[e.toLowerCase()]=function(n,r){var i=this;return i._errorHandler.wrapBarcodeCall(function(){r.text=typeof r.text>"u"?void 0:""+r.text;var a=(0,U.default)(i._options,r);a=(0,kf.default)(a);var u=t[e],o=Ir(n,u,a);return i._encodings.push(o),i})}}function Ir(t,e,n){t=""+t;var r=new e(t,n);if(!r.valid())throw new Pr.InvalidInputException(r.constructor.name,t);var i=r.encode();i=(0,Tr.default)(i);for(var a=0;a