From 7e554f475548861ff55bb793c7a58b9e15b76129 Mon Sep 17 00:00:00 2001 From: ph1r3754r73r <6174900+ph1r3574r73r@users.noreply.github.com> Date: Sat, 13 Jun 2026 17:12:42 -0700 Subject: [PATCH] up npm packages --- js/vendor/JsBarcode.min.js | 2 +- js/vendor/qrcode.min.js | 2 +- package-lock.json | 216 ++++++++++++++++++------------------- package.json | 2 +- 4 files changed, 111 insertions(+), 111 deletions(-) diff --git a/js/vendor/JsBarcode.min.js b/js/vendor/JsBarcode.min.js index f53e9bc..28976b0 100644 --- a/js/vendor/JsBarcode.min.js +++ b/js/vendor/JsBarcode.min.js @@ -1 +1 @@ -"use strict";var JsBarcode=(()=>{var f=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);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{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{var g=(n,t)=>()=>(t||n((t={exports:{}}).exports,t),t.exports);var _t=g((Sn,Lt)=>{Lt.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var I=g(P=>{var st,Le=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];P.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};P.getSymbolTotalCodewords=function(t){return Le[t]};P.getBCHDigit=function(n){let t=0;for(;n!==0;)t++,n>>>=1;return t};P.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');st=t};P.isKanjiModeEnabled=function(){return typeof st<"u"};P.toSJIS=function(t){return st(t)}});var j=g(m=>{m.L={bit:1};m.M={bit:0};m.Q={bit:3};m.H={bit:2};function _e(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return m.L;case"m":case"medium":return m.M;case"q":case"quartile":return m.Q;case"h":case"high":return m.H;default:throw new Error("Unknown EC Level: "+n)}}m.isValid=function(t){return t&&typeof t.bit<"u"&&t.bit>=0&&t.bit<4};m.from=function(t,e){if(m.isValid(t))return t;try{return _e(t)}catch{return e}}});var qt=g((Rn,Ut)=>{function xt(){this.buffer=[],this.length=0}xt.prototype={get:function(n){let t=Math.floor(n/8);return(this.buffer[t]>>>7-n%8&1)===1},put:function(n,t){for(let e=0;e>>t-e-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(n){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),n&&(this.buffer[t]|=128>>>this.length%8),this.length++}};Ut.exports=xt});var Ft=g((Ln,Dt)=>{function k(n){if(!n||n<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=n,this.data=new Uint8Array(n*n),this.reservedBit=new Uint8Array(n*n)}k.prototype.set=function(n,t,e,r){let o=n*this.size+t;this.data[o]=e,r&&(this.reservedBit[o]=!0)};k.prototype.get=function(n,t){return this.data[n*this.size+t]};k.prototype.xor=function(n,t,e){this.data[n*this.size+t]^=e};k.prototype.isReserved=function(n,t){return this.reservedBit[n*this.size+t]};Dt.exports=k});var kt=g(G=>{var xe=I().getSymbolSize;G.getRowColCoords=function(t){if(t===1)return[];let e=Math.floor(t/7)+2,r=xe(t),o=r===145?26:Math.ceil((r-13)/(2*e-2))*2,i=[r-7];for(let s=1;s{var Ue=I().getSymbolSize,zt=7;Vt.getPositions=function(t){let e=Ue(t);return[[0,0],[e-zt,0],[0,e-zt]]}});var Kt=g(d=>{d.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var b={N1:3,N2:3,N3:40,N4:10};d.isValid=function(t){return t!=null&&t!==""&&!isNaN(t)&&t>=0&&t<=7};d.from=function(t){return d.isValid(t)?parseInt(t,10):void 0};d.getPenaltyN1=function(t){let e=t.size,r=0,o=0,i=0,s=null,u=null;for(let c=0;c=5&&(r+=b.N1+(o-5)),s=a,o=1),a=t.get(l,c),a===u?i++:(i>=5&&(r+=b.N1+(i-5)),u=a,i=1)}o>=5&&(r+=b.N1+(o-5)),i>=5&&(r+=b.N1+(i-5))}return r};d.getPenaltyN2=function(t){let e=t.size,r=0;for(let o=0;o=10&&(o===1488||o===93)&&r++,i=i<<1&2047|t.get(u,s),u>=10&&(i===1488||i===93)&&r++}return r*b.N3};d.getPenaltyN4=function(t){let e=0,r=t.data.length;for(let i=0;i{var N=j(),Q=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],$=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];ut.getBlocksCount=function(t,e){switch(e){case N.L:return Q[(t-1)*4+0];case N.M:return Q[(t-1)*4+1];case N.Q:return Q[(t-1)*4+2];case N.H:return Q[(t-1)*4+3];default:return}};ut.getTotalCodewordsCount=function(t,e){switch(e){case N.L:return $[(t-1)*4+0];case N.M:return $[(t-1)*4+1];case N.Q:return $[(t-1)*4+2];case N.H:return $[(t-1)*4+3];default:return}}});var Jt=g(Z=>{var z=new Uint8Array(512),W=new Uint8Array(256);(function(){let t=1;for(let e=0;e<255;e++)z[e]=t,W[t]=e,t<<=1,t&256&&(t^=285);for(let e=255;e<512;e++)z[e]=z[e-255]})();Z.log=function(t){if(t<1)throw new Error("log("+t+")");return W[t]};Z.exp=function(t){return z[t]};Z.mul=function(t,e){return t===0||e===0?0:z[W[t]+W[e]]}});var Yt=g(V=>{var lt=Jt();V.mul=function(t,e){let r=new Uint8Array(t.length+e.length-1);for(let o=0;o=0;){let o=r[0];for(let s=0;s{var Ot=Yt();function at(n){this.genPoly=void 0,this.degree=n,this.degree&&this.initialize(this.degree)}at.prototype.initialize=function(t){this.degree=t,this.genPoly=Ot.generateECPolynomial(this.degree)};at.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");let e=new Uint8Array(t.length+this.degree);e.set(t);let r=Ot.mod(e,this.genPoly),o=this.degree-r.length;if(o>0){let i=new Uint8Array(this.degree);return i.set(r,o),i}return r};jt.exports=at});var ft=g(Qt=>{Qt.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}});var gt=g(B=>{var $t="[0-9]+",De="[A-Z $%*+\\-./:]+",H="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";H=H.replace(/u/g,"\\u");var Fe="(?:(?![A-Z0-9 $%*+\\-./:]|"+H+`)(?:.|[\r +var QRCode=(()=>{var g=(n,t)=>()=>{try{return t||n((t={exports:{}}).exports,t),t.exports}catch(e){throw t=0,e}};var _t=g((Sn,Lt)=>{Lt.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var I=g(P=>{var st,Le=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];P.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};P.getSymbolTotalCodewords=function(t){return Le[t]};P.getBCHDigit=function(n){let t=0;for(;n!==0;)t++,n>>>=1;return t};P.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');st=t};P.isKanjiModeEnabled=function(){return typeof st<"u"};P.toSJIS=function(t){return st(t)}});var j=g(m=>{m.L={bit:1};m.M={bit:0};m.Q={bit:3};m.H={bit:2};function _e(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return m.L;case"m":case"medium":return m.M;case"q":case"quartile":return m.Q;case"h":case"high":return m.H;default:throw new Error("Unknown EC Level: "+n)}}m.isValid=function(t){return t&&typeof t.bit<"u"&&t.bit>=0&&t.bit<4};m.from=function(t,e){if(m.isValid(t))return t;try{return _e(t)}catch{return e}}});var qt=g((Rn,Ut)=>{function xt(){this.buffer=[],this.length=0}xt.prototype={get:function(n){let t=Math.floor(n/8);return(this.buffer[t]>>>7-n%8&1)===1},put:function(n,t){for(let e=0;e>>t-e-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(n){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),n&&(this.buffer[t]|=128>>>this.length%8),this.length++}};Ut.exports=xt});var Ft=g((Ln,Dt)=>{function k(n){if(!n||n<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=n,this.data=new Uint8Array(n*n),this.reservedBit=new Uint8Array(n*n)}k.prototype.set=function(n,t,e,r){let o=n*this.size+t;this.data[o]=e,r&&(this.reservedBit[o]=!0)};k.prototype.get=function(n,t){return this.data[n*this.size+t]};k.prototype.xor=function(n,t,e){this.data[n*this.size+t]^=e};k.prototype.isReserved=function(n,t){return this.reservedBit[n*this.size+t]};Dt.exports=k});var kt=g(G=>{var xe=I().getSymbolSize;G.getRowColCoords=function(t){if(t===1)return[];let e=Math.floor(t/7)+2,r=xe(t),o=r===145?26:Math.ceil((r-13)/(2*e-2))*2,i=[r-7];for(let s=1;s{var Ue=I().getSymbolSize,zt=7;Vt.getPositions=function(t){let e=Ue(t);return[[0,0],[e-zt,0],[0,e-zt]]}});var Kt=g(d=>{d.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var b={N1:3,N2:3,N3:40,N4:10};d.isValid=function(t){return t!=null&&t!==""&&!isNaN(t)&&t>=0&&t<=7};d.from=function(t){return d.isValid(t)?parseInt(t,10):void 0};d.getPenaltyN1=function(t){let e=t.size,r=0,o=0,i=0,s=null,u=null;for(let c=0;c=5&&(r+=b.N1+(o-5)),s=a,o=1),a=t.get(l,c),a===u?i++:(i>=5&&(r+=b.N1+(i-5)),u=a,i=1)}o>=5&&(r+=b.N1+(o-5)),i>=5&&(r+=b.N1+(i-5))}return r};d.getPenaltyN2=function(t){let e=t.size,r=0;for(let o=0;o=10&&(o===1488||o===93)&&r++,i=i<<1&2047|t.get(u,s),u>=10&&(i===1488||i===93)&&r++}return r*b.N3};d.getPenaltyN4=function(t){let e=0,r=t.data.length;for(let i=0;i{var N=j(),Q=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],$=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];ut.getBlocksCount=function(t,e){switch(e){case N.L:return Q[(t-1)*4+0];case N.M:return Q[(t-1)*4+1];case N.Q:return Q[(t-1)*4+2];case N.H:return Q[(t-1)*4+3];default:return}};ut.getTotalCodewordsCount=function(t,e){switch(e){case N.L:return $[(t-1)*4+0];case N.M:return $[(t-1)*4+1];case N.Q:return $[(t-1)*4+2];case N.H:return $[(t-1)*4+3];default:return}}});var Jt=g(Z=>{var z=new Uint8Array(512),W=new Uint8Array(256);(function(){let t=1;for(let e=0;e<255;e++)z[e]=t,W[t]=e,t<<=1,t&256&&(t^=285);for(let e=255;e<512;e++)z[e]=z[e-255]})();Z.log=function(t){if(t<1)throw new Error("log("+t+")");return W[t]};Z.exp=function(t){return z[t]};Z.mul=function(t,e){return t===0||e===0?0:z[W[t]+W[e]]}});var Yt=g(V=>{var lt=Jt();V.mul=function(t,e){let r=new Uint8Array(t.length+e.length-1);for(let o=0;o=0;){let o=r[0];for(let s=0;s{var Ot=Yt();function at(n){this.genPoly=void 0,this.degree=n,this.degree&&this.initialize(this.degree)}at.prototype.initialize=function(t){this.degree=t,this.genPoly=Ot.generateECPolynomial(this.degree)};at.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");let e=new Uint8Array(t.length+this.degree);e.set(t);let r=Ot.mod(e,this.genPoly),o=this.degree-r.length;if(o>0){let i=new Uint8Array(this.degree);return i.set(r,o),i}return r};jt.exports=at});var ft=g(Qt=>{Qt.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}});var gt=g(B=>{var $t="[0-9]+",De="[A-Z $%*+\\-./:]+",H="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";H=H.replace(/u/g,"\\u");var Fe="(?:(?![A-Z0-9 $%*+\\-./:]|"+H+`)(?:.|[\r ]))+`;B.KANJI=new RegExp(H,"g");B.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");B.BYTE=new RegExp(Fe,"g");B.NUMERIC=new RegExp($t,"g");B.ALPHANUMERIC=new RegExp(De,"g");var ke=new RegExp("^"+H+"$"),ze=new RegExp("^"+$t+"$"),Ve=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");B.testKanji=function(t){return ke.test(t)};B.testNumeric=function(t){return ze.test(t)};B.testAlphanumeric=function(t){return Ve.test(t)}});var M=g(p=>{var He=ft(),dt=gt();p.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};p.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};p.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};p.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};p.MIXED={bit:-1};p.getCharCountIndicator=function(t,e){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!He.isValid(e))throw new Error("Invalid version: "+e);return e>=1&&e<10?t.ccBits[0]:e<27?t.ccBits[1]:t.ccBits[2]};p.getBestModeForData=function(t){return dt.testNumeric(t)?p.NUMERIC:dt.testAlphanumeric(t)?p.ALPHANUMERIC:dt.testKanji(t)?p.KANJI:p.BYTE};p.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")};p.isValid=function(t){return t&&t.bit&&t.ccBits};function Ke(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"numeric":return p.NUMERIC;case"alphanumeric":return p.ALPHANUMERIC;case"kanji":return p.KANJI;case"byte":return p.BYTE;default:throw new Error("Unknown mode: "+n)}}p.from=function(t,e){if(p.isValid(t))return t;try{return Ke(t)}catch{return e}}});var te=g(R=>{var X=I(),Je=ct(),Wt=j(),S=M(),ht=ft(),Xt=7973,Zt=X.getBCHDigit(Xt);function Ye(n,t,e){for(let r=1;r<=40;r++)if(t<=R.getCapacity(r,e,n))return r}function vt(n,t){return S.getCharCountIndicator(n,t)+4}function Oe(n,t){let e=0;return n.forEach(function(r){let o=vt(r.mode,t);e+=o+r.getBitsLength()}),e}function je(n,t){for(let e=1;e<=40;e++)if(Oe(n,e)<=R.getCapacity(e,t,S.MIXED))return e}R.from=function(t,e){return ht.isValid(t)?parseInt(t,10):e};R.getCapacity=function(t,e,r){if(!ht.isValid(t))throw new Error("Invalid QR Code version");typeof r>"u"&&(r=S.BYTE);let o=X.getSymbolTotalCodewords(t),i=Je.getTotalCodewordsCount(t,e),s=(o-i)*8;if(r===S.MIXED)return s;let u=s-vt(r,t);switch(r){case S.NUMERIC:return Math.floor(u/10*3);case S.ALPHANUMERIC:return Math.floor(u/11*2);case S.KANJI:return Math.floor(u/13);case S.BYTE:default:return Math.floor(u/8)}};R.getBestVersionForData=function(t,e){let r,o=Wt.from(e,Wt.M);if(Array.isArray(t)){if(t.length>1)return je(t,o);if(t.length===0)return 1;r=t[0]}else r=t;return Ye(r.mode,r.getLength(),o)};R.getEncodedBits=function(t){if(!ht.isValid(t)||t<7)throw new Error("Invalid QR Code version");let e=t<<12;for(;X.getBCHDigit(e)-Zt>=0;)e^=Xt<{var pt=I(),ne=1335,Ge=21522,ee=pt.getBCHDigit(ne);re.getEncodedBits=function(t,e){let r=t.bit<<3|e,o=r<<10;for(;pt.getBCHDigit(o)-ee>=0;)o^=ne<{var Qe=M();function x(n){this.mode=Qe.NUMERIC,this.data=n.toString()}x.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};x.prototype.getLength=function(){return this.data.length};x.prototype.getBitsLength=function(){return x.getBitsLength(this.data.length)};x.prototype.write=function(t){let e,r,o;for(e=0;e+3<=this.data.length;e+=3)r=this.data.substr(e,3),o=parseInt(r,10),t.put(o,10);let i=this.data.length-e;i>0&&(r=this.data.substr(e),o=parseInt(r,10),t.put(o,i*3+1))};ie.exports=x});var ce=g((On,ue)=>{var $e=M(),wt=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function U(n){this.mode=$e.ALPHANUMERIC,this.data=n}U.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};U.prototype.getLength=function(){return this.data.length};U.prototype.getBitsLength=function(){return U.getBitsLength(this.data.length)};U.prototype.write=function(t){let e;for(e=0;e+2<=this.data.length;e+=2){let r=wt.indexOf(this.data[e])*45;r+=wt.indexOf(this.data[e+1]),t.put(r,11)}this.data.length%2&&t.put(wt.indexOf(this.data[e]),6)};ue.exports=U});var ae=g((jn,le)=>{var We=M();function q(n){this.mode=We.BYTE,typeof n=="string"?this.data=new TextEncoder().encode(n):this.data=new Uint8Array(n)}q.getBitsLength=function(t){return t*8};q.prototype.getLength=function(){return this.data.length};q.prototype.getBitsLength=function(){return q.getBitsLength(this.data.length)};q.prototype.write=function(n){for(let t=0,e=this.data.length;t{var Ze=M(),Xe=I();function D(n){this.mode=Ze.KANJI,this.data=n}D.getBitsLength=function(t){return t*13};D.prototype.getLength=function(){return this.data.length};D.prototype.getBitsLength=function(){return D.getBitsLength(this.data.length)};D.prototype.write=function(n){let t;for(t=0;t=33088&&e<=40956)e-=33088;else if(e>=57408&&e<=60351)e-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+` Make sure your charset is UTF-8`);e=(e>>>8&255)*192+(e&255),n.put(e,13)}};fe.exports=D});var de=g((Qn,mt)=>{"use strict";var K={single_source_shortest_paths:function(n,t,e){var r={},o={};o[t]=0;var i=K.PriorityQueue.make();i.push(t,0);for(var s,u,c,l,a,w,h,y,A;!i.empty();){s=i.pop(),u=s.value,l=s.cost,a=n[u]||{};for(c in a)a.hasOwnProperty(c)&&(w=a[c],h=l+w,y=o[c],A=typeof o[c]>"u",(A||y>h)&&(o[c]=h,i.push(c,h),r[c]=u))}if(typeof e<"u"&&typeof o[e]>"u"){var T=["Could not find a path from ",t," to ",e,"."].join("");throw new Error(T)}return r},extract_shortest_path_from_predecessor_list:function(n,t){for(var e=[],r=t,o;r;)e.push(r),o=n[r],r=n[r];return e.reverse(),e},find_path:function(n,t,e){var r=K.single_source_shortest_paths(n,t,e);return K.extract_shortest_path_from_predecessor_list(r,e)},PriorityQueue:{make:function(n){var t=K.PriorityQueue,e={},r;n=n||{};for(r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e.queue=[],e.sorter=n.sorter||t.default_sorter,e},default_sorter:function(n,t){return n.cost-t.cost},push:function(n,t){var e={value:n,cost:t};this.queue.push(e),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};typeof mt<"u"&&(mt.exports=K)});var Be=g(F=>{var f=M(),we=se(),me=ce(),ye=ae(),Ee=ge(),J=gt(),v=I(),ve=de();function he(n){return unescape(encodeURIComponent(n)).length}function Y(n,t,e){let r=[],o;for(;(o=n.exec(e))!==null;)r.push({data:o[0],index:o.index,mode:t,length:o[0].length});return r}function Ce(n){let t=Y(J.NUMERIC,f.NUMERIC,n),e=Y(J.ALPHANUMERIC,f.ALPHANUMERIC,n),r,o;return v.isKanjiModeEnabled()?(r=Y(J.BYTE,f.BYTE,n),o=Y(J.KANJI,f.KANJI,n)):(r=Y(J.BYTE_KANJI,f.BYTE,n),o=[]),t.concat(e,r,o).sort(function(s,u){return s.index-u.index}).map(function(s){return{data:s.data,mode:s.mode,length:s.length}})}function yt(n,t){switch(t){case f.NUMERIC:return we.getBitsLength(n);case f.ALPHANUMERIC:return me.getBitsLength(n);case f.KANJI:return Ee.getBitsLength(n);case f.BYTE:return ye.getBitsLength(n)}}function tn(n){return n.reduce(function(t,e){let r=t.length-1>=0?t[t.length-1]:null;return r&&r.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)},[])}function en(n){let t=[];for(let e=0;e{var et=I(),Et=j(),rn=qt(),on=Ft(),sn=kt(),un=Ht(),At=Kt(),Tt=ct(),cn=Gt(),tt=te(),ln=oe(),an=M(),Ct=Be();function fn(n,t){let e=n.size,r=un.getPositions(t);for(let o=0;o=0&&u<=6&&(c===0||c===6)||c>=0&&c<=6&&(u===0||u===6)||u>=2&&u<=4&&c>=2&&c<=4?n.set(i+u,s+c,!0,!0):n.set(i+u,s+c,!1,!0))}}function gn(n){let t=n.size;for(let e=8;e>u&1)===1,n.set(o,i,s,!0),n.set(i,o,s,!0)}function Bt(n,t,e){let r=n.size,o=ln.getEncodedBits(t,e),i,s;for(i=0;i<15;i++)s=(o>>i&1)===1,i<6?n.set(i,8,s,!0):i<8?n.set(i+1,8,s,!0):n.set(r-15+i,8,s,!0),i<8?n.set(8,r-i-1,s,!0):i<9?n.set(8,15-i-1+1,s,!0):n.set(8,15-i-1,s,!0);n.set(r-8,8,1,!0)}function pn(n,t){let e=n.size,r=-1,o=e-1,i=7,s=0;for(let u=e-1;u>0;u-=2)for(u===6&&u--;;){for(let c=0;c<2;c++)if(!n.isReserved(o,u-c)){let l=!1;s>>i&1)===1),n.set(o,u-c,l),i--,i===-1&&(s++,i=7)}if(o+=r,o<0||e<=o){o-=r,r=-r;break}}}function wn(n,t,e){let r=new rn;e.forEach(function(c){r.put(c.mode.bit,4),r.put(c.getLength(),an.getCharCountIndicator(c.mode,n)),c.write(r)});let o=et.getSymbolTotalCodewords(n),i=Tt.getTotalCodewordsCount(n,t),s=(o-i)*8;for(r.getLengthInBits()+4<=s&&r.put(0,4);r.getLengthInBits()%8!==0;)r.putBit(0);let u=(s-r.getLengthInBits())/8;for(let c=0;c=18" }, "optionalDependencies": { - "@esbuild/aix-ppc64": "0.28.0", - "@esbuild/android-arm": "0.28.0", - "@esbuild/android-arm64": "0.28.0", - "@esbuild/android-x64": "0.28.0", - "@esbuild/darwin-arm64": "0.28.0", - "@esbuild/darwin-x64": "0.28.0", - "@esbuild/freebsd-arm64": "0.28.0", - "@esbuild/freebsd-x64": "0.28.0", - "@esbuild/linux-arm": "0.28.0", - "@esbuild/linux-arm64": "0.28.0", - "@esbuild/linux-ia32": "0.28.0", - "@esbuild/linux-loong64": "0.28.0", - "@esbuild/linux-mips64el": "0.28.0", - "@esbuild/linux-ppc64": "0.28.0", - "@esbuild/linux-riscv64": "0.28.0", - "@esbuild/linux-s390x": "0.28.0", - "@esbuild/linux-x64": "0.28.0", - "@esbuild/netbsd-arm64": "0.28.0", - "@esbuild/netbsd-x64": "0.28.0", - "@esbuild/openbsd-arm64": "0.28.0", - "@esbuild/openbsd-x64": "0.28.0", - "@esbuild/openharmony-arm64": "0.28.0", - "@esbuild/sunos-x64": "0.28.0", - "@esbuild/win32-arm64": "0.28.0", - "@esbuild/win32-ia32": "0.28.0", - "@esbuild/win32-x64": "0.28.0" + "@esbuild/aix-ppc64": "0.28.1", + "@esbuild/android-arm": "0.28.1", + "@esbuild/android-arm64": "0.28.1", + "@esbuild/android-x64": "0.28.1", + "@esbuild/darwin-arm64": "0.28.1", + "@esbuild/darwin-x64": "0.28.1", + "@esbuild/freebsd-arm64": "0.28.1", + "@esbuild/freebsd-x64": "0.28.1", + "@esbuild/linux-arm": "0.28.1", + "@esbuild/linux-arm64": "0.28.1", + "@esbuild/linux-ia32": "0.28.1", + "@esbuild/linux-loong64": "0.28.1", + "@esbuild/linux-mips64el": "0.28.1", + "@esbuild/linux-ppc64": "0.28.1", + "@esbuild/linux-riscv64": "0.28.1", + "@esbuild/linux-s390x": "0.28.1", + "@esbuild/linux-x64": "0.28.1", + "@esbuild/netbsd-arm64": "0.28.1", + "@esbuild/netbsd-x64": "0.28.1", + "@esbuild/openbsd-arm64": "0.28.1", + "@esbuild/openbsd-x64": "0.28.1", + "@esbuild/openharmony-arm64": "0.28.1", + "@esbuild/sunos-x64": "0.28.1", + "@esbuild/win32-arm64": "0.28.1", + "@esbuild/win32-ia32": "0.28.1", + "@esbuild/win32-x64": "0.28.1" } }, "node_modules/execa": { diff --git a/package.json b/package.json index 7aa3c05..35fe727 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "license": "MIT", "devDependencies": { "@zxing/library": "^0.23.0", - "esbuild": "^0.28.0", + "esbuild": "^0.28.1", "jsbarcode": "^3.12.3", "qrcode": "^1.5.4", "serve": "^14.2.6"