x-print-designer 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +663 -0
- package/README.md +4 -0
- package/dist/assets/Axis-hDyHms34.js +21 -0
- package/dist/assets/JsBarcode-BOwNyIpk.js +1 -0
- package/dist/assets/barcode-BoWGE6Vo.js +8 -0
- package/dist/assets/browser-CR_q2Gy7.js +1 -0
- package/dist/assets/canvg-ChoTXRpY.js +18 -0
- package/dist/assets/charts-oAXpTr-7.js +1 -0
- package/dist/assets/components-scMrpbvF.js +22 -0
- package/dist/assets/core-DLbFUvXo.js +1 -0
- package/dist/assets/createSeriesData-DY7MF9QR.js +1 -0
- package/dist/assets/customGraphicKeyframeAnimation-g4tvH6et.js +3 -0
- package/dist/assets/dom-to-image-more.min-Bzng6PqA.js +1 -0
- package/dist/assets/favicon-o5K9zUr2.ico +0 -0
- package/dist/assets/graphic-Cay9kDL2.js +29 -0
- package/dist/assets/html2canvas.esm-QH1iLAAe.js +22 -0
- package/dist/assets/index-BQQffM8S.css +1 -0
- package/dist/assets/index-EEoYfeHo.js +153 -0
- package/dist/assets/jszip.min-DLPWIKb1.js +12 -0
- package/dist/assets/logo-DXm7qK2I.png +0 -0
- package/dist/assets/monaco-BQthl4Am.js +11 -0
- package/dist/assets/pdf-Cjgn4CZy.js +170 -0
- package/dist/assets/purify.es-B5CD4DQe.js +2 -0
- package/dist/assets/renderers-CHDIdITR.js +3 -0
- package/dist/assets/utils-C6aID195.js +1 -0
- package/dist/assets/vendor-B8_O41fo.js +39 -0
- package/dist/index.html +19 -0
- package/package.json +68 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as n}from"./canvg-ChoTXRpY.js";import{r as f}from"./barcode-BoWGE6Vo.js";function i(t,s){for(var o=0;o<s.length;o++){const e=s[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const a=Object.getOwnPropertyDescriptor(e,r);a&&Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var c=f();const p=n(c),g=i({__proto__:null,default:p},[c]);export{g as J};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var de={},Z={},he={},Mt;function k(){if(Mt)return he;Mt=1,Object.defineProperty(he,"__esModule",{value:!0});function h(s,u){if(!(s instanceof u))throw new TypeError("Cannot call a class as a function")}var c=function s(u,o){h(this,s),this.data=u,this.text=o.text||u,this.options=o};return he.default=c,he}var Ct;function pr(){if(Ct)return Z;Ct=1,Object.defineProperty(Z,"__esModule",{value:!0}),Z.CODE39=void 0;var h=(function(){function g(_,y){for(var E=0;E<y.length;E++){var R=y[E];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(_,R.key,R)}}return function(_,y,E){return y&&g(_.prototype,y),E&&g(_,E),_}})(),c=k(),s=u(c);function u(g){return g&&g.__esModule?g:{default:g}}function o(g,_){if(!(g instanceof _))throw new TypeError("Cannot call a class as a function")}function f(g,_){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:g}function l(g,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);g.prototype=Object.create(_&&_.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(g,_):g.__proto__=_)}var d=(function(g){l(_,g);function _(y,E){return o(this,_),y=y.toUpperCase(),E.mod43&&(y+=n(v(y))),f(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,y,E))}return h(_,[{key:"encode",value:function(){for(var E=t("*"),R=0;R<this.data.length;R++)E+=t(this.data[R])+"0";return E+=t("*"),{data:E,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/)!==-1}}]),_})(s.default),i=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%","*"],e=[20957,29783,23639,30485,20951,29813,23669,20855,29789,23645,29975,23831,30533,22295,30149,24005,21623,29981,23837,22301,30023,23879,30545,22343,30161,24017,21959,30065,23921,22385,29015,18263,29141,17879,29045,18293,17783,29021,18269,17477,17489,17681,20753,35770];function t(g){return r(a(g))}function r(g){return e[g].toString(2)}function n(g){return i[g]}function a(g){return i.indexOf(g)}function v(g){for(var _=0,y=0;y<g.length;y++)_+=a(g[y]);return _=_%43,_}return Z.CODE39=d,Z}var N={},se={},ve={},I={},It;function ae(){if(It)return I;It=1,Object.defineProperty(I,"__esModule",{value:!0});var h;function c(i,e,t){return e in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}var s=I.SET_A=0,u=I.SET_B=1,o=I.SET_C=2;I.SHIFT=98;var f=I.START_A=103,l=I.START_B=104,d=I.START_C=105;return I.MODULO=103,I.STOP=106,I.FNC1=207,I.SET_BY_CODE=(h={},c(h,f,s),c(h,l,u),c(h,d,o),h),I.SWAP={101:s,100:u,99:o},I.A_START_CHAR="Ð",I.B_START_CHAR="Ñ",I.C_START_CHAR="Ò",I.A_CHARS="[\0-_È-Ï]",I.B_CHARS="[ -È-Ï]",I.C_CHARS="(Ï*[0-9]{2}Ï*)",I.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],I}var xt;function Je(){if(xt)return ve;xt=1,Object.defineProperty(ve,"__esModule",{value:!0});var h=(function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}})(),c=k(),s=o(c),u=ae();function o(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function d(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=(function(e){d(t,e);function t(r,n){f(this,t);var a=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r.substring(1),n));return a.bytes=r.split("").map(function(v){return v.charCodeAt(0)}),a}return h(t,[{key:"valid",value:function(){return/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data)}},{key:"encode",value:function(){var n=this.bytes,a=n.shift()-105,v=u.SET_BY_CODE[a];if(v===void 0)throw new RangeError("The encoding does not start with a start character.");this.shouldEncodeAsEan128()===!0&&n.unshift(u.FNC1);var g=t.next(n,1,v);return{text:this.text===this.data?this.text.replace(/[^\x20-\x7E]/g,""):this.text,data:t.getBar(a)+g.result+t.getBar((g.checksum+a)%u.MODULO)+t.getBar(u.STOP)}}},{key:"shouldEncodeAsEan128",value:function(){var n=this.options.ean128||!1;return typeof n=="string"&&(n=n.toLowerCase()==="true"),n}}],[{key:"getBar",value:function(n){return u.BARS[n]?u.BARS[n].toString():""}},{key:"correctIndex",value:function(n,a){if(a===u.SET_A){var v=n.shift();return v<32?v+64:v-32}else return a===u.SET_B?n.shift()-32:(n.shift()-48)*10+n.shift()-48}},{key:"next",value:function(n,a,v){if(!n.length)return{result:"",checksum:0};var g=void 0,_=void 0;if(n[0]>=200){_=n.shift()-105;var y=u.SWAP[_];y!==void 0?g=t.next(n,a+1,y):((v===u.SET_A||v===u.SET_B)&&_===u.SHIFT&&(n[0]=v===u.SET_A?n[0]>95?n[0]-96:n[0]:n[0]<32?n[0]+96:n[0]),g=t.next(n,a+1,v))}else _=t.correctIndex(n,v),g=t.next(n,a+1,v);var E=t.getBar(_),R=_*a;return{result:E+g.result,checksum:R+g.checksum}}}]),t})(s.default);return ve.default=i,ve}var ge={},Bt;function Or(){if(Bt)return ge;Bt=1,Object.defineProperty(ge,"__esModule",{value:!0});var h=ae(),c=function(d){return d.match(new RegExp("^"+h.A_CHARS+"*"))[0].length},s=function(d){return d.match(new RegExp("^"+h.B_CHARS+"*"))[0].length},u=function(d){return d.match(new RegExp("^"+h.C_CHARS+"*"))[0]};function o(l,d){var i=d?h.A_CHARS:h.B_CHARS,e=l.match(new RegExp("^("+i+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(e)return e[1]+"Ì"+f(l.substring(e[1].length));var t=l.match(new RegExp("^"+i+"+"))[0];return t.length===l.length?l:t+String.fromCharCode(d?205:206)+o(l.substring(t.length),!d)}function f(l){var d=u(l),i=d.length;if(i===l.length)return l;l=l.substring(i);var e=c(l)>=s(l);return d+String.fromCharCode(e?206:205)+o(l,e)}return ge.default=function(l){var d=void 0,i=u(l).length;if(i>=2)d=h.C_START_CHAR+f(l);else{var e=c(l)>s(l);d=(e?h.A_START_CHAR:h.B_START_CHAR)+o(l,e)}return d.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,function(t,r){return"Ë"+r})},ge}var Dt;function mr(){if(Dt)return se;Dt=1,Object.defineProperty(se,"__esModule",{value:!0});var h=Je(),c=o(h),s=Or(),u=o(s);function o(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function d(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=(function(e){d(t,e);function t(r,n){if(f(this,t),/^[\x00-\x7F\xC8-\xD3]+$/.test(r))var a=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,(0,u.default)(r),n));else var a=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r,n));return l(a)}return t})(c.default);return se.default=i,se}var _e={},kt;function wr(){if(kt)return _e;kt=1,Object.defineProperty(_e,"__esModule",{value:!0});var h=(function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}})(),c=Je(),s=o(c),u=ae();function o(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function d(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=(function(e){d(t,e);function t(r,n){return f(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,u.A_START_CHAR+r,n))}return h(t,[{key:"valid",value:function(){return new RegExp("^"+u.A_CHARS+"+$").test(this.data)}}]),t})(s.default);return _e.default=i,_e}var ye={},Nt;function br(){if(Nt)return ye;Nt=1,Object.defineProperty(ye,"__esModule",{value:!0});var h=(function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}})(),c=Je(),s=o(c),u=ae();function o(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function d(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=(function(e){d(t,e);function t(r,n){return f(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,u.B_START_CHAR+r,n))}return h(t,[{key:"valid",value:function(){return new RegExp("^"+u.B_CHARS+"+$").test(this.data)}}]),t})(s.default);return ye.default=i,ye}var Ee={},qt;function Rr(){if(qt)return Ee;qt=1,Object.defineProperty(Ee,"__esModule",{value:!0});var h=(function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}})(),c=Je(),s=o(c),u=ae();function o(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function d(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=(function(e){d(t,e);function t(r,n){return f(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,u.C_START_CHAR+r,n))}return h(t,[{key:"valid",value:function(){return new RegExp("^"+u.C_CHARS+"+$").test(this.data)}}]),t})(s.default);return Ee.default=i,Ee}var Lt;function Sr(){if(Lt)return N;Lt=1,Object.defineProperty(N,"__esModule",{value:!0}),N.CODE128C=N.CODE128B=N.CODE128A=N.CODE128=void 0;var h=mr(),c=i(h),s=wr(),u=i(s),o=br(),f=i(o),l=Rr(),d=i(l);function i(e){return e&&e.__esModule?e:{default:e}}return N.CODE128=c.default,N.CODE128A=u.default,N.CODE128B=f.default,N.CODE128C=d.default,N}var x={},pe={},U={},jt;function ue(){return jt||(jt=1,Object.defineProperty(U,"__esModule",{value:!0}),U.SIDE_BIN="101",U.MIDDLE_BIN="01010",U.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"]},U.EAN2_STRUCTURE=["LL","LG","GL","GG"],U.EAN5_STRUCTURE=["GGLLL","GLGLL","GLLGL","GLLLG","LGGLL","LLGGL","LLLGG","LGLGL","LGLLG","LLGLG"],U.EAN13_STRUCTURE=["LLLLLL","LLGLGG","LLGGLG","LLGGGL","LGLLGG","LGGLLG","LGGGLL","LGLGLG","LGLGGL","LGGLGL"]),U}var Oe={},me={},Ft;function fe(){if(Ft)return me;Ft=1,Object.defineProperty(me,"__esModule",{value:!0});var h=ue(),c=function(u,o,f){var l=u.split("").map(function(i,e){return h.BINARIES[o[e]]}).map(function(i,e){return i?i[u[e]]:""});if(f){var d=u.length-1;l=l.map(function(i,e){return e<d?i+f:i})}return l.join("")};return me.default=c,me}var Ut;function ir(){if(Ut)return Oe;Ut=1,Object.defineProperty(Oe,"__esModule",{value:!0});var h=(function(){function r(n,a){for(var v=0;v<a.length;v++){var g=a[v];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(n,g.key,g)}}return function(n,a,v){return a&&r(n.prototype,a),v&&r(n,v),n}})(),c=ue(),s=fe(),u=l(s),o=k(),f=l(o);function l(r){return r&&r.__esModule?r:{default:r}}function d(r,n){if(!(r instanceof n))throw new TypeError("Cannot call a class as a function")}function i(r,n){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:r}function e(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);r.prototype=Object.create(n&&n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(r,n):r.__proto__=n)}var t=(function(r){e(n,r);function n(a,v){d(this,n);var g=i(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,a,v));return g.fontSize=!v.flat&&v.fontSize>v.width*10?v.width*10:v.fontSize,g.guardHeight=v.height+g.fontSize/2+v.textMargin,g}return h(n,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(v,g){return this.text.substr(v,g)}},{key:"leftEncode",value:function(v,g){return(0,u.default)(v,g)}},{key:"rightText",value:function(v,g){return this.text.substr(v,g)}},{key:"rightEncode",value:function(v,g){return(0,u.default)(v,g)}},{key:"encodeGuarded",value:function(){var v={fontSize:this.fontSize},g={height:this.guardHeight};return[{data:c.SIDE_BIN,options:g},{data:this.leftEncode(),text:this.leftText(),options:v},{data:c.MIDDLE_BIN,options:g},{data:this.rightEncode(),text:this.rightText(),options:v},{data:c.SIDE_BIN,options:g}]}},{key:"encodeFlat",value:function(){var v=[c.SIDE_BIN,this.leftEncode(),c.MIDDLE_BIN,this.rightEncode(),c.SIDE_BIN];return{data:v.join(""),text:this.text}}}]),n})(f.default);return Oe.default=t,Oe}var Gt;function Ar(){if(Gt)return pe;Gt=1,Object.defineProperty(pe,"__esModule",{value:!0});var h=(function(){function r(n,a){for(var v=0;v<a.length;v++){var g=a[v];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(n,g.key,g)}}return function(n,a,v){return a&&r(n.prototype,a),v&&r(n,v),n}})(),c=function r(n,a,v){n===null&&(n=Function.prototype);var g=Object.getOwnPropertyDescriptor(n,a);if(g===void 0){var _=Object.getPrototypeOf(n);return _===null?void 0:r(_,a,v)}else{if("value"in g)return g.value;var y=g.get;return y===void 0?void 0:y.call(v)}},s=ue(),u=ir(),o=f(u);function f(r){return r&&r.__esModule?r:{default:r}}function l(r,n){if(!(r instanceof n))throw new TypeError("Cannot call a class as a function")}function d(r,n){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:r}function i(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);r.prototype=Object.create(n&&n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(r,n):r.__proto__=n)}var e=function(n){var a=n.substr(0,12).split("").map(function(v){return+v}).reduce(function(v,g,_){return _%2?v+g*3:v+g},0);return(10-a%10)%10},t=(function(r){i(n,r);function n(a,v){l(this,n),a.search(/^[0-9]{12}$/)!==-1&&(a+=e(a));var g=d(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,a,v));return g.lastChar=v.lastChar,g}return h(n,[{key:"valid",value:function(){return this.data.search(/^[0-9]{13}$/)!==-1&&+this.data[12]===e(this.data)}},{key:"leftText",value:function(){return c(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"leftText",this).call(this,1,6)}},{key:"leftEncode",value:function(){var v=this.data.substr(1,6),g=s.EAN13_STRUCTURE[this.data[0]];return c(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"leftEncode",this).call(this,v,g)}},{key:"rightText",value:function(){return c(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"rightText",this).call(this,7,6)}},{key:"rightEncode",value:function(){var v=this.data.substr(7,6);return c(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"rightEncode",this).call(this,v,"RRRRRR")}},{key:"encodeGuarded",value:function(){var v=c(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"encodeGuarded",this).call(this);return this.options.displayValue&&(v.unshift({data:"000000000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),this.options.lastChar&&(v.push({data:"00"}),v.push({data:"00000",text:this.options.lastChar,options:{fontSize:this.fontSize}}))),v}}]),n})(o.default);return pe.default=t,pe}var we={},zt;function Pr(){if(zt)return we;zt=1,Object.defineProperty(we,"__esModule",{value:!0});var h=(function(){function t(r,n){for(var a=0;a<n.length;a++){var v=n[a];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(r,v.key,v)}}return function(r,n,a){return n&&t(r.prototype,n),a&&t(r,a),r}})(),c=function t(r,n,a){r===null&&(r=Function.prototype);var v=Object.getOwnPropertyDescriptor(r,n);if(v===void 0){var g=Object.getPrototypeOf(r);return g===null?void 0:t(g,n,a)}else{if("value"in v)return v.value;var _=v.get;return _===void 0?void 0:_.call(a)}},s=ir(),u=o(s);function o(t){return t&&t.__esModule?t:{default:t}}function f(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function l(t,r){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:t}function d(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(t,r):t.__proto__=r)}var i=function(r){var n=r.substr(0,7).split("").map(function(a){return+a}).reduce(function(a,v,g){return g%2?a+v:a+v*3},0);return(10-n%10)%10},e=(function(t){d(r,t);function r(n,a){return f(this,r),n.search(/^[0-9]{7}$/)!==-1&&(n+=i(n)),l(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,n,a))}return h(r,[{key:"valid",value:function(){return this.data.search(/^[0-9]{8}$/)!==-1&&+this.data[7]===i(this.data)}},{key:"leftText",value:function(){return c(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"leftText",this).call(this,0,4)}},{key:"leftEncode",value:function(){var a=this.data.substr(0,4);return c(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"leftEncode",this).call(this,a,"LLLL")}},{key:"rightText",value:function(){return c(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"rightText",this).call(this,4,4)}},{key:"rightEncode",value:function(){var a=this.data.substr(4,4);return c(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"rightEncode",this).call(this,a,"RRRR")}}]),r})(u.default);return we.default=e,we}var be={},Ht;function Tr(){if(Ht)return be;Ht=1,Object.defineProperty(be,"__esModule",{value:!0});var h=(function(){function n(a,v){for(var g=0;g<v.length;g++){var _=v[g];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(a,_.key,_)}}return function(a,v,g){return v&&n(a.prototype,v),g&&n(a,g),a}})(),c=ue(),s=fe(),u=l(s),o=k(),f=l(o);function l(n){return n&&n.__esModule?n:{default:n}}function d(n,a){if(!(n instanceof a))throw new TypeError("Cannot call a class as a function")}function i(n,a){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:n}function e(n,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);n.prototype=Object.create(a&&a.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(n,a):n.__proto__=a)}var t=function(a){var v=a.split("").map(function(g){return+g}).reduce(function(g,_,y){return y%2?g+_*9:g+_*3},0);return v%10},r=(function(n){e(a,n);function a(v,g){return d(this,a),i(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,v,g))}return h(a,[{key:"valid",value:function(){return this.data.search(/^[0-9]{5}$/)!==-1}},{key:"encode",value:function(){var g=c.EAN5_STRUCTURE[t(this.data)];return{data:"1011"+(0,u.default)(this.data,g,"01"),text:this.text}}}]),a})(f.default);return be.default=r,be}var Re={},Vt;function Mr(){if(Vt)return Re;Vt=1,Object.defineProperty(Re,"__esModule",{value:!0});var h=(function(){function r(n,a){for(var v=0;v<a.length;v++){var g=a[v];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(n,g.key,g)}}return function(n,a,v){return a&&r(n.prototype,a),v&&r(n,v),n}})(),c=ue(),s=fe(),u=l(s),o=k(),f=l(o);function l(r){return r&&r.__esModule?r:{default:r}}function d(r,n){if(!(r instanceof n))throw new TypeError("Cannot call a class as a function")}function i(r,n){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:r}function e(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);r.prototype=Object.create(n&&n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(r,n):r.__proto__=n)}var t=(function(r){e(n,r);function n(a,v){return d(this,n),i(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,a,v))}return h(n,[{key:"valid",value:function(){return this.data.search(/^[0-9]{2}$/)!==-1}},{key:"encode",value:function(){var v=c.EAN2_STRUCTURE[parseInt(this.data)%4];return{data:"1011"+(0,u.default)(this.data,v,"01"),text:this.text}}}]),n})(f.default);return Re.default=t,Re}var ee={},Xt;function or(){if(Xt)return ee;Xt=1,Object.defineProperty(ee,"__esModule",{value:!0});var h=(function(){function r(n,a){for(var v=0;v<a.length;v++){var g=a[v];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(n,g.key,g)}}return function(n,a,v){return a&&r(n.prototype,a),v&&r(n,v),n}})();ee.checksum=t;var c=fe(),s=f(c),u=k(),o=f(u);function f(r){return r&&r.__esModule?r:{default:r}}function l(r,n){if(!(r instanceof n))throw new TypeError("Cannot call a class as a function")}function d(r,n){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:r}function i(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);r.prototype=Object.create(n&&n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(r,n):r.__proto__=n)}var e=(function(r){i(n,r);function n(a,v){l(this,n),a.search(/^[0-9]{11}$/)!==-1&&(a+=t(a));var g=d(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,a,v));return g.displayValue=v.displayValue,v.fontSize>v.width*10?g.fontSize=v.width*10:g.fontSize=v.fontSize,g.guardHeight=v.height+g.fontSize/2+v.textMargin,g}return h(n,[{key:"valid",value:function(){return this.data.search(/^[0-9]{12}$/)!==-1&&this.data[11]==t(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var v="";return v+="101",v+=(0,s.default)(this.data.substr(0,6),"LLLLLL"),v+="01010",v+=(0,s.default)(this.data.substr(6,6),"RRRRRR"),v+="101",{data:v,text:this.text}}},{key:"guardedEncoding",value:function(){var v=[];return this.displayValue&&v.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),v.push({data:"101"+(0,s.default)(this.data[0],"L"),options:{height:this.guardHeight}}),v.push({data:(0,s.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),v.push({data:"01010",options:{height:this.guardHeight}}),v.push({data:(0,s.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),v.push({data:(0,s.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&v.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),v}}]),n})(o.default);function t(r){var n=0,a;for(a=1;a<11;a+=2)n+=parseInt(r[a]);for(a=0;a<11;a+=2)n+=parseInt(r[a])*3;return(10-n%10)%10}return ee.default=e,ee}var Se={},$t;function Cr(){if($t)return Se;$t=1,Object.defineProperty(Se,"__esModule",{value:!0});var h=(function(){function v(g,_){for(var y=0;y<_.length;y++){var E=_[y];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(g,E.key,E)}}return function(g,_,y){return _&&v(g.prototype,_),y&&v(g,y),g}})(),c=fe(),s=l(c),u=k(),o=l(u),f=or();function l(v){return v&&v.__esModule?v:{default:v}}function d(v,g){if(!(v instanceof g))throw new TypeError("Cannot call a class as a function")}function i(v,g){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:v}function e(v,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);v.prototype=Object.create(g&&g.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(v,g):v.__proto__=g)}var t=["XX00000XXX","XX10000XXX","XX20000XXX","XXX00000XX","XXXX00000X","XXXXX00005","XXXXX00006","XXXXX00007","XXXXX00008","XXXXX00009"],r=[["EEEOOO","OOOEEE"],["EEOEOO","OOEOEE"],["EEOOEO","OOEEOE"],["EEOOOE","OOEEEO"],["EOEEOO","OEOOEE"],["EOOEEO","OEEOOE"],["EOOOEE","OEEEOO"],["EOEOEO","OEOEOE"],["EOEOOE","OEOEEO"],["EOOEOE","OEEOEO"]],n=(function(v){e(g,v);function g(_,y){d(this,g);var E=i(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,_,y));if(E.isValid=!1,_.search(/^[0-9]{6}$/)!==-1)E.middleDigits=_,E.upcA=a(_,"0"),E.text=y.text||""+E.upcA[0]+_+E.upcA[E.upcA.length-1],E.isValid=!0;else if(_.search(/^[01][0-9]{7}$/)!==-1)if(E.middleDigits=_.substring(1,_.length-1),E.upcA=a(E.middleDigits,_[0]),E.upcA[E.upcA.length-1]===_[_.length-1])E.isValid=!0;else return i(E);else return i(E);return E.displayValue=y.displayValue,y.fontSize>y.width*10?E.fontSize=y.width*10:E.fontSize=y.fontSize,E.guardHeight=y.height+E.fontSize/2+y.textMargin,E}return h(g,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var y="";return y+="101",y+=this.encodeMiddleDigits(),y+="010101",{data:y,text:this.text}}},{key:"guardedEncoding",value:function(){var y=[];return this.displayValue&&y.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),y.push({data:"101",options:{height:this.guardHeight}}),y.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),y.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&y.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),y}},{key:"encodeMiddleDigits",value:function(){var y=this.upcA[0],E=this.upcA[this.upcA.length-1],R=r[parseInt(E)][parseInt(y)];return(0,s.default)(this.middleDigits,R)}}]),g})(o.default);function a(v,g){for(var _=parseInt(v[v.length-1]),y=t[_],E="",R=0,T=0;T<y.length;T++){var C=y[T];C==="X"?E+=v[R++]:E+=C}return E=""+g+E,""+E+(0,f.checksum)(E)}return Se.default=n,Se}var Jt;function Ir(){if(Jt)return x;Jt=1,Object.defineProperty(x,"__esModule",{value:!0}),x.UPCE=x.UPC=x.EAN2=x.EAN5=x.EAN8=x.EAN13=void 0;var h=Ar(),c=n(h),s=Pr(),u=n(s),o=Tr(),f=n(o),l=Mr(),d=n(l),i=or(),e=n(i),t=Cr(),r=n(t);function n(a){return a&&a.__esModule?a:{default:a}}return x.EAN13=c.default,x.EAN8=u.default,x.EAN5=f.default,x.EAN2=d.default,x.UPC=e.default,x.UPCE=r.default,x}var H={},Ae={},K={},Kt;function xr(){return Kt||(Kt=1,Object.defineProperty(K,"__esModule",{value:!0}),K.START_BIN="1010",K.END_BIN="11101",K.BINARIES=["00110","10001","01001","11000","00101","10100","01100","00011","10010","01010"]),K}var Yt;function ar(){if(Yt)return Ae;Yt=1,Object.defineProperty(Ae,"__esModule",{value:!0});var h=(function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}})(),c=xr(),s=k(),u=o(s);function o(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function d(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=(function(e){d(t,e);function t(){return f(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,[{key:"valid",value:function(){return this.data.search(/^([0-9]{2})+$/)!==-1}},{key:"encode",value:function(){var n=this,a=this.data.match(/.{2}/g).map(function(v){return n.encodePair(v)}).join("");return{data:c.START_BIN+a+c.END_BIN,text:this.text}}},{key:"encodePair",value:function(n){var a=c.BINARIES[n[1]];return c.BINARIES[n[0]].split("").map(function(v,g){return(v==="1"?"111":"1")+(a[g]==="1"?"000":"0")}).join("")}}]),t})(u.default);return Ae.default=i,Ae}var Pe={},Qt;function Br(){if(Qt)return Pe;Qt=1,Object.defineProperty(Pe,"__esModule",{value:!0});var h=(function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}})(),c=ar(),s=u(c);function u(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function l(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=function(t){var r=t.substr(0,13).split("").map(function(n){return parseInt(n,10)}).reduce(function(n,a,v){return n+a*(3-v%2*2)},0);return Math.ceil(r/10)*10-r},i=(function(e){l(t,e);function t(r,n){return o(this,t),r.search(/^[0-9]{13}$/)!==-1&&(r+=d(r)),f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r,n))}return h(t,[{key:"valid",value:function(){return this.data.search(/^[0-9]{14}$/)!==-1&&+this.data[13]===d(this.data)}}]),t})(s.default);return Pe.default=i,Pe}var Wt;function Dr(){if(Wt)return H;Wt=1,Object.defineProperty(H,"__esModule",{value:!0}),H.ITF14=H.ITF=void 0;var h=ar(),c=o(h),s=Br(),u=o(s);function o(f){return f&&f.__esModule?f:{default:f}}return H.ITF=c.default,H.ITF14=u.default,H}var B={},Te={},Zt;function ce(){if(Zt)return Te;Zt=1,Object.defineProperty(Te,"__esModule",{value:!0});var h=(function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}})(),c=k(),s=u(c);function u(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function l(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=(function(e){l(t,e);function t(r,n){return o(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r,n))}return h(t,[{key:"encode",value:function(){for(var n="110",a=0;a<this.data.length;a++){var v=parseInt(this.data[a]),g=v.toString(2);g=i(g,4-g.length);for(var _=0;_<g.length;_++)n+=g[_]=="0"?"100":"110"}return n+="1001",{data:n,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9]+$/)!==-1}}]),t})(s.default);function i(e,t){for(var r=0;r<t;r++)e="0"+e;return e}return Te.default=d,Te}var Me={},te={},en;function Ke(){if(en)return te;en=1,Object.defineProperty(te,"__esModule",{value:!0}),te.mod10=h,te.mod11=c;function h(s){for(var u=0,o=0;o<s.length;o++){var f=parseInt(s[o]);(o+s.length)%2===0?u+=f:u+=f*2%10+Math.floor(f*2/10)}return(10-u%10)%10}function c(s){for(var u=0,o=[2,3,4,5,6,7],f=0;f<s.length;f++){var l=parseInt(s[s.length-1-f]);u+=o[f%o.length]*l}return(11-u%11)%11}return te}var tn;function kr(){if(tn)return Me;tn=1,Object.defineProperty(Me,"__esModule",{value:!0});var h=ce(),c=u(h),s=Ke();function u(i){return i&&i.__esModule?i:{default:i}}function o(i,e){if(!(i instanceof e))throw new TypeError("Cannot call a class as a function")}function f(i,e){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:i}function l(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);i.prototype=Object.create(e&&e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(i,e):i.__proto__=e)}var d=(function(i){l(e,i);function e(t,r){return o(this,e),f(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t+(0,s.mod10)(t),r))}return e})(c.default);return Me.default=d,Me}var Ce={},nn;function Nr(){if(nn)return Ce;nn=1,Object.defineProperty(Ce,"__esModule",{value:!0});var h=ce(),c=u(h),s=Ke();function u(i){return i&&i.__esModule?i:{default:i}}function o(i,e){if(!(i instanceof e))throw new TypeError("Cannot call a class as a function")}function f(i,e){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:i}function l(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);i.prototype=Object.create(e&&e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(i,e):i.__proto__=e)}var d=(function(i){l(e,i);function e(t,r){return o(this,e),f(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t+(0,s.mod11)(t),r))}return e})(c.default);return Ce.default=d,Ce}var Ie={},rn;function qr(){if(rn)return Ie;rn=1,Object.defineProperty(Ie,"__esModule",{value:!0});var h=ce(),c=u(h),s=Ke();function u(i){return i&&i.__esModule?i:{default:i}}function o(i,e){if(!(i instanceof e))throw new TypeError("Cannot call a class as a function")}function f(i,e){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:i}function l(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);i.prototype=Object.create(e&&e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(i,e):i.__proto__=e)}var d=(function(i){l(e,i);function e(t,r){return o(this,e),t+=(0,s.mod10)(t),t+=(0,s.mod10)(t),f(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r))}return e})(c.default);return Ie.default=d,Ie}var xe={},on;function Lr(){if(on)return xe;on=1,Object.defineProperty(xe,"__esModule",{value:!0});var h=ce(),c=u(h),s=Ke();function u(i){return i&&i.__esModule?i:{default:i}}function o(i,e){if(!(i instanceof e))throw new TypeError("Cannot call a class as a function")}function f(i,e){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:i}function l(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);i.prototype=Object.create(e&&e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(i,e):i.__proto__=e)}var d=(function(i){l(e,i);function e(t,r){return o(this,e),t+=(0,s.mod11)(t),t+=(0,s.mod10)(t),f(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r))}return e})(c.default);return xe.default=d,xe}var an;function jr(){if(an)return B;an=1,Object.defineProperty(B,"__esModule",{value:!0}),B.MSI1110=B.MSI1010=B.MSI11=B.MSI10=B.MSI=void 0;var h=ce(),c=t(h),s=kr(),u=t(s),o=Nr(),f=t(o),l=qr(),d=t(l),i=Lr(),e=t(i);function t(r){return r&&r.__esModule?r:{default:r}}return B.MSI=c.default,B.MSI10=u.default,B.MSI11=f.default,B.MSI1010=d.default,B.MSI1110=e.default,B}var ne={},un;function Fr(){if(un)return ne;un=1,Object.defineProperty(ne,"__esModule",{value:!0}),ne.pharmacode=void 0;var h=(function(){function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}})(),c=k(),s=u(c);function u(i){return i&&i.__esModule?i:{default:i}}function o(i,e){if(!(i instanceof e))throw new TypeError("Cannot call a class as a function")}function f(i,e){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:i}function l(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);i.prototype=Object.create(e&&e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(i,e):i.__proto__=e)}var d=(function(i){l(e,i);function e(t,r){o(this,e);var n=f(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r));return n.number=parseInt(t,10),n}return h(e,[{key:"encode",value:function(){for(var r=this.number,n="";!isNaN(r)&&r!=0;)r%2===0?(n="11100"+n,r=(r-2)/2):(n="100"+n,r=(r-1)/2);return n=n.slice(0,-2),{data:n,text:this.text}}},{key:"valid",value:function(){return this.number>=3&&this.number<=131070}}]),e})(s.default);return ne.pharmacode=d,ne}var re={},fn;function Ur(){if(fn)return re;fn=1,Object.defineProperty(re,"__esModule",{value:!0}),re.codabar=void 0;var h=(function(){function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}})(),c=k(),s=u(c);function u(i){return i&&i.__esModule?i:{default:i}}function o(i,e){if(!(i instanceof e))throw new TypeError("Cannot call a class as a function")}function f(i,e){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:i}function l(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);i.prototype=Object.create(e&&e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(i,e):i.__proto__=e)}var d=(function(i){l(e,i);function e(t,r){o(this,e),t.search(/^[0-9\-\$\:\.\+\/]+$/)===0&&(t="A"+t+"A");var n=f(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t.toUpperCase(),r));return n.text=n.options.text||n.text.replace(/[A-D]/g,""),n}return h(e,[{key:"valid",value:function(){return this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/)!==-1}},{key:"encode",value:function(){for(var r=[],n=this.getEncodings(),a=0;a<this.data.length;a++)r.push(n[this.data.charAt(a)]),a!==this.data.length-1&&r.push("0");return{text:this.text,data:r.join("")}}},{key:"getEncodings",value:function(){return{0:"101010011",1:"101011001",2:"101001011",3:"110010101",4:"101101001",5:"110101001",6:"100101011",7:"100101101",8:"100110101",9:"110100101","-":"101001101",$:"101100101",":":"1101011011","/":"1101101011",".":"1101101101","+":"1011011011",A:"1011001001",B:"1001001011",C:"1010010011",D:"1010011001"}}}]),e})(s.default);return re.codabar=d,re}var V={},Be={},Y={},cn;function Gr(){return cn||(cn=1,Object.defineProperty(Y,"__esModule",{value:!0}),Y.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","-","."," ","$","/","+","%","($)","(%)","(/)","(+)","ÿ"],Y.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"],Y.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"],"":["(%)","T"]}),Y}var ln;function ur(){if(ln)return Be;ln=1,Object.defineProperty(Be,"__esModule",{value:!0});var h=(function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}})(),c=Gr(),s=k(),u=o(s);function o(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function d(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=(function(e){d(t,e);function t(r,n){return f(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r,n))}return h(t,[{key:"valid",value:function(){return/^[0-9A-Z\-. $/+%]+$/.test(this.data)}},{key:"encode",value:function(){var n=this.data.split("").flatMap(function(_){return c.MULTI_SYMBOLS[_]||_}),a=n.map(function(_){return t.getEncoding(_)}).join(""),v=t.checksum(n,20),g=t.checksum(n.concat(v),15);return{text:this.text,data:t.getEncoding("ÿ")+a+t.getEncoding(v)+t.getEncoding(g)+t.getEncoding("ÿ")+"1"}}}],[{key:"getEncoding",value:function(n){return c.BINARIES[t.symbolValue(n)]}},{key:"getSymbol",value:function(n){return c.SYMBOLS[n]}},{key:"symbolValue",value:function(n){return c.SYMBOLS.indexOf(n)}},{key:"checksum",value:function(n,a){var v=n.slice().reverse().reduce(function(g,_,y){var E=y%a+1;return g+t.symbolValue(_)*E},0);return t.getSymbol(v%47)}}]),t})(u.default);return Be.default=i,Be}var De={},dn;function zr(){if(dn)return De;dn=1,Object.defineProperty(De,"__esModule",{value:!0});var h=(function(){function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}})(),c=ur(),s=u(c);function u(i){return i&&i.__esModule?i:{default:i}}function o(i,e){if(!(i instanceof e))throw new TypeError("Cannot call a class as a function")}function f(i,e){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:i}function l(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);i.prototype=Object.create(e&&e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(i,e):i.__proto__=e)}var d=(function(i){l(e,i);function e(t,r){return o(this,e),f(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r))}return h(e,[{key:"valid",value:function(){return/^[\x00-\x7f]+$/.test(this.data)}}]),e})(s.default);return De.default=d,De}var hn;function Hr(){if(hn)return V;hn=1,Object.defineProperty(V,"__esModule",{value:!0}),V.CODE93FullASCII=V.CODE93=void 0;var h=ur(),c=o(h),s=zr(),u=o(s);function o(f){return f&&f.__esModule?f:{default:f}}return V.CODE93=c.default,V.CODE93FullASCII=u.default,V}var ie={},sn;function Vr(){if(sn)return ie;sn=1,Object.defineProperty(ie,"__esModule",{value:!0}),ie.GenericBarcode=void 0;var h=(function(){function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}})(),c=k(),s=u(c);function u(i){return i&&i.__esModule?i:{default:i}}function o(i,e){if(!(i instanceof e))throw new TypeError("Cannot call a class as a function")}function f(i,e){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:i}function l(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);i.prototype=Object.create(e&&e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(i,e):i.__proto__=e)}var d=(function(i){l(e,i);function e(t,r){return o(this,e),f(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r))}return h(e,[{key:"encode",value:function(){return{data:"10101010101010101010101010101010101010101",text:this.text}}},{key:"valid",value:function(){return!0}}]),e})(s.default);return ie.GenericBarcode=d,ie}var vn;function Xr(){if(vn)return de;vn=1,Object.defineProperty(de,"__esModule",{value:!0});var h=pr(),c=Sr(),s=Ir(),u=Dr(),o=jr(),f=Fr(),l=Ur(),d=Hr(),i=Vr();return de.default={CODE39:h.CODE39,CODE128:c.CODE128,CODE128A:c.CODE128A,CODE128B:c.CODE128B,CODE128C:c.CODE128C,EAN13:s.EAN13,EAN8:s.EAN8,EAN5:s.EAN5,EAN2:s.EAN2,UPC:s.UPC,UPCE:s.UPCE,ITF14:u.ITF14,ITF:u.ITF,MSI:o.MSI,MSI10:o.MSI10,MSI11:o.MSI11,MSI1010:o.MSI1010,MSI1110:o.MSI1110,pharmacode:f.pharmacode,codabar:l.codabar,CODE93:d.CODE93,CODE93FullASCII:d.CODE93FullASCII,GenericBarcode:i.GenericBarcode},de}var ke={},gn;function Ye(){if(gn)return ke;gn=1,Object.defineProperty(ke,"__esModule",{value:!0});var h=Object.assign||function(c){for(var s=1;s<arguments.length;s++){var u=arguments[s];for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&(c[o]=u[o])}return c};return ke.default=function(c,s){return h({},c,s)},ke}var Ne={},_n;function $r(){if(_n)return Ne;_n=1,Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.default=h;function h(c){var s=[];function u(o){if(Array.isArray(o))for(var f=0;f<o.length;f++)u(o[f]);else o.text=o.text||"",o.data=o.data||"",s.push(o)}return u(c),s}return Ne}var qe={},yn;function Jr(){if(yn)return qe;yn=1,Object.defineProperty(qe,"__esModule",{value:!0}),qe.default=h;function h(c){return c.marginTop=c.marginTop||c.margin,c.marginBottom=c.marginBottom||c.margin,c.marginRight=c.marginRight||c.margin,c.marginLeft=c.marginLeft||c.margin,c}return qe}var Le={},je={},Fe={},En;function fr(){if(En)return Fe;En=1,Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.default=h;function h(c){var s=["width","height","textMargin","fontSize","margin","marginTop","marginBottom","marginLeft","marginRight"];for(var u in s)s.hasOwnProperty(u)&&(u=s[u],typeof c[u]=="string"&&(c[u]=parseInt(c[u],10)));return typeof c.displayValue=="string"&&(c.displayValue=c.displayValue!="false"),c}return Fe}var Ue={},pn;function cr(){if(pn)return Ue;pn=1,Object.defineProperty(Ue,"__esModule",{value:!0});var h={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(){}};return Ue.default=h,Ue}var On;function Kr(){if(On)return je;On=1,Object.defineProperty(je,"__esModule",{value:!0});var h=fr(),c=o(h),s=cr(),u=o(s);function o(l){return l&&l.__esModule?l:{default:l}}function f(l){var d={};for(var i in u.default)u.default.hasOwnProperty(i)&&(l.hasAttribute("jsbarcode-"+i.toLowerCase())&&(d[i]=l.getAttribute("jsbarcode-"+i.toLowerCase())),l.hasAttribute("data-"+i.toLowerCase())&&(d[i]=l.getAttribute("data-"+i.toLowerCase())));return d.value=l.getAttribute("jsbarcode-value")||l.getAttribute("data-value"),d=(0,c.default)(d),d}return je.default=f,je}var Ge={},ze={},D={},mn;function lr(){if(mn)return D;mn=1,Object.defineProperty(D,"__esModule",{value:!0}),D.getTotalWidthOfEncodings=D.calculateEncodingAttributes=D.getBarcodePadding=D.getEncodingHeight=D.getMaximumHeightOfEncodings=void 0;var h=Ye(),c=s(h);function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){return t.height+(t.displayValue&&e.text.length>0?t.fontSize+t.textMargin:0)+t.marginTop+t.marginBottom}function o(e,t,r){if(r.displayValue&&t<e){if(r.textAlign=="center")return Math.floor((e-t)/2);if(r.textAlign=="left")return 0;if(r.textAlign=="right")return Math.floor(e-t)}return 0}function f(e,t,r){for(var n=0;n<e.length;n++){var a=e[n],v=(0,c.default)(t,a.options),g;v.displayValue?g=i(a.text,v,r):g=0;var _=a.data.length*v.width;a.width=Math.ceil(Math.max(g,_)),a.height=u(a,v),a.barcodePadding=o(g,_,v)}}function l(e){for(var t=0,r=0;r<e.length;r++)t+=e[r].width;return t}function d(e){for(var t=0,r=0;r<e.length;r++)e[r].height>t&&(t=e[r].height);return t}function i(e,t,r){var n;if(r)n=r;else if(typeof document<"u")n=document.createElement("canvas").getContext("2d");else return 0;n.font=t.fontOptions+" "+t.fontSize+"px "+t.font;var a=n.measureText(e);if(!a)return 0;var v=a.width;return v}return D.getMaximumHeightOfEncodings=d,D.getEncodingHeight=u,D.getBarcodePadding=o,D.calculateEncodingAttributes=f,D.getTotalWidthOfEncodings=l,D}var wn;function Yr(){if(wn)return ze;wn=1,Object.defineProperty(ze,"__esModule",{value:!0});var h=(function(){function d(i,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(i,r.key,r)}}return function(i,e,t){return e&&d(i.prototype,e),t&&d(i,t),i}})(),c=Ye(),s=o(c),u=lr();function o(d){return d&&d.__esModule?d:{default:d}}function f(d,i){if(!(d instanceof i))throw new TypeError("Cannot call a class as a function")}var l=(function(){function d(i,e,t){f(this,d),this.canvas=i,this.encodings=e,this.options=t}return h(d,[{key:"render",value:function(){if(!this.canvas.getContext)throw new Error("The browser does not support canvas.");this.prepareCanvas();for(var e=0;e<this.encodings.length;e++){var t=(0,s.default)(this.options,this.encodings[e].options);this.drawCanvasBarcode(t,this.encodings[e]),this.drawCanvasText(t,this.encodings[e]),this.moveCanvasDrawing(this.encodings[e])}this.restoreCanvas()}},{key:"prepareCanvas",value:function(){var e=this.canvas.getContext("2d");e.save(),(0,u.calculateEncodingAttributes)(this.encodings,this.options,e);var t=(0,u.getTotalWidthOfEncodings)(this.encodings),r=(0,u.getMaximumHeightOfEncodings)(this.encodings);this.canvas.width=t+this.options.marginLeft+this.options.marginRight,this.canvas.height=r,e.clearRect(0,0,this.canvas.width,this.canvas.height),this.options.background&&(e.fillStyle=this.options.background,e.fillRect(0,0,this.canvas.width,this.canvas.height)),e.translate(this.options.marginLeft,0)}},{key:"drawCanvasBarcode",value:function(e,t){var r=this.canvas.getContext("2d"),n=t.data,a;e.textPosition=="top"?a=e.marginTop+e.fontSize+e.textMargin:a=e.marginTop,r.fillStyle=e.lineColor;for(var v=0;v<n.length;v++){var g=v*e.width+t.barcodePadding;n[v]==="1"?r.fillRect(g,a,e.width,e.height):n[v]&&r.fillRect(g,a,e.width,e.height*n[v])}}},{key:"drawCanvasText",value:function(e,t){var r=this.canvas.getContext("2d"),n=e.fontOptions+" "+e.fontSize+"px "+e.font;if(e.displayValue){var a,v;e.textPosition=="top"?v=e.marginTop+e.fontSize-e.textMargin:v=e.height+e.textMargin+e.marginTop+e.fontSize,r.font=n,e.textAlign=="left"||t.barcodePadding>0?(a=0,r.textAlign="left"):e.textAlign=="right"?(a=t.width-1,r.textAlign="right"):(a=t.width/2,r.textAlign="center"),r.fillText(t.text,a,v)}}},{key:"moveCanvasDrawing",value:function(e){var t=this.canvas.getContext("2d");t.translate(e.width,0)}},{key:"restoreCanvas",value:function(){var e=this.canvas.getContext("2d");e.restore()}}]),d})();return ze.default=l,ze}var He={},bn;function Qr(){if(bn)return He;bn=1,Object.defineProperty(He,"__esModule",{value:!0});var h=(function(){function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}})(),c=Ye(),s=o(c),u=lr();function o(i){return i&&i.__esModule?i:{default:i}}function f(i,e){if(!(i instanceof e))throw new TypeError("Cannot call a class as a function")}var l="http://www.w3.org/2000/svg",d=(function(){function i(e,t,r){f(this,i),this.svg=e,this.encodings=t,this.options=r,this.document=r.xmlDocument||document}return h(i,[{key:"render",value:function(){var t=this.options.marginLeft;this.prepareSVG();for(var r=0;r<this.encodings.length;r++){var n=this.encodings[r],a=(0,s.default)(this.options,n.options),v=this.createGroup(t,a.marginTop,this.svg);this.setGroupOptions(v,a),this.drawSvgBarcode(v,a,n),this.drawSVGText(v,a,n),t+=n.width}}},{key:"prepareSVG",value:function(){for(;this.svg.firstChild;)this.svg.removeChild(this.svg.firstChild);(0,u.calculateEncodingAttributes)(this.encodings,this.options);var t=(0,u.getTotalWidthOfEncodings)(this.encodings),r=(0,u.getMaximumHeightOfEncodings)(this.encodings),n=t+this.options.marginLeft+this.options.marginRight;this.setSvgAttributes(n,r),this.options.background&&this.drawRect(0,0,n,r,this.svg).setAttribute("fill",this.options.background)}},{key:"drawSvgBarcode",value:function(t,r,n){var a=n.data,v;r.textPosition=="top"?v=r.fontSize+r.textMargin:v=0;for(var g=0,_=0,y=0;y<a.length;y++)_=y*r.width+n.barcodePadding,a[y]==="1"?g++:g>0&&(this.drawRect(_-r.width*g,v,r.width*g,r.height,t),g=0);g>0&&this.drawRect(_-r.width*(g-1),v,r.width*g,r.height,t)}},{key:"drawSVGText",value:function(t,r,n){var a=this.document.createElementNS(l,"text");if(r.displayValue){var v,g;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"?g=r.fontSize-r.textMargin:g=r.height+r.textMargin+r.fontSize,r.textAlign=="left"||n.barcodePadding>0?(v=0,a.setAttribute("text-anchor","start")):r.textAlign=="right"?(v=n.width-1,a.setAttribute("text-anchor","end")):(v=n.width/2,a.setAttribute("text-anchor","middle")),a.setAttribute("x",v),a.setAttribute("y",g),a.appendChild(this.document.createTextNode(n.text)),t.appendChild(a)}}},{key:"setSvgAttributes",value:function(t,r){var n=this.svg;n.setAttribute("width",t+"px"),n.setAttribute("height",r+"px"),n.setAttribute("x","0px"),n.setAttribute("y","0px"),n.setAttribute("viewBox","0 0 "+t+" "+r),n.setAttribute("xmlns",l),n.setAttribute("version","1.1")}},{key:"createGroup",value:function(t,r,n){var a=this.document.createElementNS(l,"g");return a.setAttribute("transform","translate("+t+", "+r+")"),n.appendChild(a),a}},{key:"setGroupOptions",value:function(t,r){t.setAttribute("fill",r.lineColor)}},{key:"drawRect",value:function(t,r,n,a,v){var g=this.document.createElementNS(l,"rect");return g.setAttribute("x",t),g.setAttribute("y",r),g.setAttribute("width",n),g.setAttribute("height",a),v.appendChild(g),g}}]),i})();return He.default=d,He}var Ve={},Rn;function Wr(){if(Rn)return Ve;Rn=1,Object.defineProperty(Ve,"__esModule",{value:!0});var h=(function(){function u(o,f){for(var l=0;l<f.length;l++){var d=f[l];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(o,d.key,d)}}return function(o,f,l){return f&&u(o.prototype,f),l&&u(o,l),o}})();function c(u,o){if(!(u instanceof o))throw new TypeError("Cannot call a class as a function")}var s=(function(){function u(o,f,l){c(this,u),this.object=o,this.encodings=f,this.options=l}return h(u,[{key:"render",value:function(){this.object.encodings=this.encodings}}]),u})();return Ve.default=s,Ve}var Sn;function Zr(){if(Sn)return Ge;Sn=1,Object.defineProperty(Ge,"__esModule",{value:!0});var h=Yr(),c=l(h),s=Qr(),u=l(s),o=Wr(),f=l(o);function l(d){return d&&d.__esModule?d:{default:d}}return Ge.default={CanvasRenderer:c.default,SVGRenderer:u.default,ObjectRenderer:f.default},Ge}var Q={},An;function dr(){if(An)return Q;An=1,Object.defineProperty(Q,"__esModule",{value:!0});function h(l,d){if(!(l instanceof d))throw new TypeError("Cannot call a class as a function")}function c(l,d){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:l}function s(l,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);l.prototype=Object.create(d&&d.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(l,d):l.__proto__=d)}var u=(function(l){s(d,l);function d(i,e){h(this,d);var t=c(this,(d.__proto__||Object.getPrototypeOf(d)).call(this));return t.name="InvalidInputException",t.symbology=i,t.input=e,t.message='"'+t.input+'" is not a valid input for '+t.symbology,t}return d})(Error),o=(function(l){s(d,l);function d(){h(this,d);var i=c(this,(d.__proto__||Object.getPrototypeOf(d)).call(this));return i.name="InvalidElementException",i.message="Not supported type to render on",i}return d})(Error),f=(function(l){s(d,l);function d(){h(this,d);var i=c(this,(d.__proto__||Object.getPrototypeOf(d)).call(this));return i.name="NoElementException",i.message="No element to render on.",i}return d})(Error);return Q.InvalidInputException=u,Q.InvalidElementException=o,Q.NoElementException=f,Q}var Pn;function ei(){if(Pn)return Le;Pn=1,Object.defineProperty(Le,"__esModule",{value:!0});var h=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},c=Kr(),s=l(c),u=Zr(),o=l(u),f=dr();function l(t){return t&&t.__esModule?t:{default:t}}function d(t){if(typeof t=="string")return i(t);if(Array.isArray(t)){for(var r=[],n=0;n<t.length;n++)r.push(d(t[n]));return r}else{if(typeof HTMLCanvasElement<"u"&&t instanceof HTMLImageElement)return e(t);if(t&&t.nodeName&&t.nodeName.toLowerCase()==="svg"||typeof SVGElement<"u"&&t instanceof SVGElement)return{element:t,options:(0,s.default)(t),renderer:o.default.SVGRenderer};if(typeof HTMLCanvasElement<"u"&&t instanceof HTMLCanvasElement)return{element:t,options:(0,s.default)(t),renderer:o.default.CanvasRenderer};if(t&&t.getContext)return{element:t,renderer:o.default.CanvasRenderer};if(t&&(typeof t>"u"?"undefined":h(t))==="object"&&!t.nodeName)return{element:t,renderer:o.default.ObjectRenderer};throw new f.InvalidElementException}}function i(t){var r=document.querySelectorAll(t);if(r.length!==0){for(var n=[],a=0;a<r.length;a++)n.push(d(r[a]));return n}}function e(t){var r=document.createElement("canvas");return{element:r,options:(0,s.default)(t),renderer:o.default.CanvasRenderer,afterRender:function(){t.setAttribute("src",r.toDataURL())}}}return Le.default=d,Le}var Xe={},Tn;function ti(){if(Tn)return Xe;Tn=1,Object.defineProperty(Xe,"__esModule",{value:!0});var h=(function(){function u(o,f){for(var l=0;l<f.length;l++){var d=f[l];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(o,d.key,d)}}return function(o,f,l){return f&&u(o.prototype,f),l&&u(o,l),o}})();function c(u,o){if(!(u instanceof o))throw new TypeError("Cannot call a class as a function")}var s=(function(){function u(o){c(this,u),this.api=o}return h(u,[{key:"handleCatch",value:function(f){if(f.name==="InvalidInputException")if(this.api._options.valid!==this.api._defaults.valid)this.api._options.valid(!1);else throw f.message;else throw f;this.api.render=function(){}}},{key:"wrapBarcodeCall",value:function(f){try{var l=f.apply(void 0,arguments);return this.api._options.valid(!0),l}catch(d){return this.handleCatch(d),this.api}}}]),u})();return Xe.default=s,Xe}var tt,Mn;function wi(){if(Mn)return tt;Mn=1;var h=Xr(),c=y(h),s=Ye(),u=y(s),o=$r(),f=y(o),l=Jr(),d=y(l),i=ei(),e=y(i),t=fr(),r=y(t),n=ti(),a=y(n),v=dr(),g=cr(),_=y(g);function y(p){return p&&p.__esModule?p:{default:p}}var E=function(){},R=function(b,w,m){var O=new E;if(typeof b>"u")throw Error("No element to render on was provided.");return O._renderProperties=(0,e.default)(b),O._encodings=[],O._options=_.default,O._errorHandler=new a.default(O),typeof w<"u"&&(m=m||{},m.format||(m.format=M()),O.options(m)[m.format](w,m).render()),O};R.getModule=function(p){return c.default[p]};for(var T in c.default)c.default.hasOwnProperty(T)&&C(c.default,T);function C(p,b){E.prototype[b]=E.prototype[b.toUpperCase()]=E.prototype[b.toLowerCase()]=function(w,m){var O=this;return O._errorHandler.wrapBarcodeCall(function(){m.text=typeof m.text>"u"?void 0:""+m.text;var A=(0,u.default)(O._options,m);A=(0,r.default)(A);var q=p[b],z=S(w,q,A);return O._encodings.push(z),O})}}function S(p,b,w){p=""+p;var m=new b(p,w);if(!m.valid())throw new v.InvalidInputException(m.constructor.name,p);var O=m.encode();O=(0,f.default)(O);for(var A=0;A<O.length;A++)O[A].options=(0,u.default)(w,O[A].options);return O}function M(){return c.default.CODE128?"CODE128":Object.keys(c.default)[0]}E.prototype.options=function(p){return this._options=(0,u.default)(this._options,p),this},E.prototype.blank=function(p){var b=new Array(p+1).join("0");return this._encodings.push({data:b}),this},E.prototype.init=function(){if(this._renderProperties){Array.isArray(this._renderProperties)||(this._renderProperties=[this._renderProperties]);var p;for(var b in this._renderProperties){p=this._renderProperties[b];var w=(0,u.default)(this._options,p.options);w.format=="auto"&&(w.format=M()),this._errorHandler.wrapBarcodeCall(function(){var m=w.value,O=c.default[w.format.toUpperCase()],A=S(m,O,w);P(p,A,w)})}}},E.prototype.render=function(){if(!this._renderProperties)throw new v.NoElementException;if(Array.isArray(this._renderProperties))for(var p=0;p<this._renderProperties.length;p++)P(this._renderProperties[p],this._encodings,this._options);else P(this._renderProperties,this._encodings,this._options);return this},E.prototype._defaults=_.default;function P(p,b,w){b=(0,f.default)(b);for(var m=0;m<b.length;m++)b[m].options=(0,u.default)(w,b[m].options),(0,d.default)(b[m].options);(0,d.default)(w);var O=p.renderer,A=new O(p.element,b,w);A.render(),p.afterRender&&p.afterRender()}return typeof window<"u"&&(window.JsBarcode=R),typeof jQuery<"u"&&(jQuery.fn.JsBarcode=function(p,b){var w=[];return jQuery(this).each(function(){w.push(this)}),R(w,p,b)}),tt=R,tt}var W={},nt,Cn;function ni(){return Cn||(Cn=1,nt=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),nt}var rt={},G={},In;function X(){if(In)return G;In=1;let h;const c=[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];return G.getSymbolSize=function(u){if(!u)throw new Error('"version" cannot be null or undefined');if(u<1||u>40)throw new Error('"version" should be in range from 1 to 40');return u*4+17},G.getSymbolTotalCodewords=function(u){return c[u]},G.getBCHDigit=function(s){let u=0;for(;s!==0;)u++,s>>>=1;return u},G.setToSJISFunction=function(u){if(typeof u!="function")throw new Error('"toSJISFunc" is not a valid function.');h=u},G.isKanjiModeEnabled=function(){return typeof h<"u"},G.toSJIS=function(u){return h(u)},G}var it={},xn;function St(){return xn||(xn=1,(function(h){h.L={bit:1},h.M={bit:0},h.Q={bit:3},h.H={bit:2};function c(s){if(typeof s!="string")throw new Error("Param is not a string");switch(s.toLowerCase()){case"l":case"low":return h.L;case"m":case"medium":return h.M;case"q":case"quartile":return h.Q;case"h":case"high":return h.H;default:throw new Error("Unknown EC Level: "+s)}}h.isValid=function(u){return u&&typeof u.bit<"u"&&u.bit>=0&&u.bit<4},h.from=function(u,o){if(h.isValid(u))return u;try{return c(u)}catch{return o}}})(it)),it}var ot,Bn;function ri(){if(Bn)return ot;Bn=1;function h(){this.buffer=[],this.length=0}return h.prototype={get:function(c){const s=Math.floor(c/8);return(this.buffer[s]>>>7-c%8&1)===1},put:function(c,s){for(let u=0;u<s;u++)this.putBit((c>>>s-u-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(c){const s=Math.floor(this.length/8);this.buffer.length<=s&&this.buffer.push(0),c&&(this.buffer[s]|=128>>>this.length%8),this.length++}},ot=h,ot}var at,Dn;function ii(){if(Dn)return at;Dn=1;function h(c){if(!c||c<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=c,this.data=new Uint8Array(c*c),this.reservedBit=new Uint8Array(c*c)}return h.prototype.set=function(c,s,u,o){const f=c*this.size+s;this.data[f]=u,o&&(this.reservedBit[f]=!0)},h.prototype.get=function(c,s){return this.data[c*this.size+s]},h.prototype.xor=function(c,s,u){this.data[c*this.size+s]^=u},h.prototype.isReserved=function(c,s){return this.reservedBit[c*this.size+s]},at=h,at}var ut={},kn;function oi(){return kn||(kn=1,(function(h){const c=X().getSymbolSize;h.getRowColCoords=function(u){if(u===1)return[];const o=Math.floor(u/7)+2,f=c(u),l=f===145?26:Math.ceil((f-13)/(2*o-2))*2,d=[f-7];for(let i=1;i<o-1;i++)d[i]=d[i-1]-l;return d.push(6),d.reverse()},h.getPositions=function(u){const o=[],f=h.getRowColCoords(u),l=f.length;for(let d=0;d<l;d++)for(let i=0;i<l;i++)d===0&&i===0||d===0&&i===l-1||d===l-1&&i===0||o.push([f[d],f[i]]);return o}})(ut)),ut}var ft={},Nn;function ai(){if(Nn)return ft;Nn=1;const h=X().getSymbolSize,c=7;return ft.getPositions=function(u){const o=h(u);return[[0,0],[o-c,0],[0,o-c]]},ft}var ct={},qn;function ui(){return qn||(qn=1,(function(h){h.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const c={N1:3,N2:3,N3:40,N4:10};h.isValid=function(o){return o!=null&&o!==""&&!isNaN(o)&&o>=0&&o<=7},h.from=function(o){return h.isValid(o)?parseInt(o,10):void 0},h.getPenaltyN1=function(o){const f=o.size;let l=0,d=0,i=0,e=null,t=null;for(let r=0;r<f;r++){d=i=0,e=t=null;for(let n=0;n<f;n++){let a=o.get(r,n);a===e?d++:(d>=5&&(l+=c.N1+(d-5)),e=a,d=1),a=o.get(n,r),a===t?i++:(i>=5&&(l+=c.N1+(i-5)),t=a,i=1)}d>=5&&(l+=c.N1+(d-5)),i>=5&&(l+=c.N1+(i-5))}return l},h.getPenaltyN2=function(o){const f=o.size;let l=0;for(let d=0;d<f-1;d++)for(let i=0;i<f-1;i++){const e=o.get(d,i)+o.get(d,i+1)+o.get(d+1,i)+o.get(d+1,i+1);(e===4||e===0)&&l++}return l*c.N2},h.getPenaltyN3=function(o){const f=o.size;let l=0,d=0,i=0;for(let e=0;e<f;e++){d=i=0;for(let t=0;t<f;t++)d=d<<1&2047|o.get(e,t),t>=10&&(d===1488||d===93)&&l++,i=i<<1&2047|o.get(t,e),t>=10&&(i===1488||i===93)&&l++}return l*c.N3},h.getPenaltyN4=function(o){let f=0;const l=o.data.length;for(let i=0;i<l;i++)f+=o.data[i];return Math.abs(Math.ceil(f*100/l/5)-10)*c.N4};function s(u,o,f){switch(u){case h.Patterns.PATTERN000:return(o+f)%2===0;case h.Patterns.PATTERN001:return o%2===0;case h.Patterns.PATTERN010:return f%3===0;case h.Patterns.PATTERN011:return(o+f)%3===0;case h.Patterns.PATTERN100:return(Math.floor(o/2)+Math.floor(f/3))%2===0;case h.Patterns.PATTERN101:return o*f%2+o*f%3===0;case h.Patterns.PATTERN110:return(o*f%2+o*f%3)%2===0;case h.Patterns.PATTERN111:return(o*f%3+(o+f)%2)%2===0;default:throw new Error("bad maskPattern:"+u)}}h.applyMask=function(o,f){const l=f.size;for(let d=0;d<l;d++)for(let i=0;i<l;i++)f.isReserved(i,d)||f.xor(i,d,s(o,i,d))},h.getBestMask=function(o,f){const l=Object.keys(h.Patterns).length;let d=0,i=1/0;for(let e=0;e<l;e++){f(e),h.applyMask(e,o);const t=h.getPenaltyN1(o)+h.getPenaltyN2(o)+h.getPenaltyN3(o)+h.getPenaltyN4(o);h.applyMask(e,o),t<i&&(i=t,d=e)}return d}})(ct)),ct}var $e={},Ln;function hr(){if(Ln)return $e;Ln=1;const h=St(),c=[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],s=[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];return $e.getBlocksCount=function(o,f){switch(f){case h.L:return c[(o-1)*4+0];case h.M:return c[(o-1)*4+1];case h.Q:return c[(o-1)*4+2];case h.H:return c[(o-1)*4+3];default:return}},$e.getTotalCodewordsCount=function(o,f){switch(f){case h.L:return s[(o-1)*4+0];case h.M:return s[(o-1)*4+1];case h.Q:return s[(o-1)*4+2];case h.H:return s[(o-1)*4+3];default:return}},$e}var lt={},oe={},jn;function fi(){if(jn)return oe;jn=1;const h=new Uint8Array(512),c=new Uint8Array(256);return(function(){let u=1;for(let o=0;o<255;o++)h[o]=u,c[u]=o,u<<=1,u&256&&(u^=285);for(let o=255;o<512;o++)h[o]=h[o-255]})(),oe.log=function(u){if(u<1)throw new Error("log("+u+")");return c[u]},oe.exp=function(u){return h[u]},oe.mul=function(u,o){return u===0||o===0?0:h[c[u]+c[o]]},oe}var Fn;function ci(){return Fn||(Fn=1,(function(h){const c=fi();h.mul=function(u,o){const f=new Uint8Array(u.length+o.length-1);for(let l=0;l<u.length;l++)for(let d=0;d<o.length;d++)f[l+d]^=c.mul(u[l],o[d]);return f},h.mod=function(u,o){let f=new Uint8Array(u);for(;f.length-o.length>=0;){const l=f[0];for(let i=0;i<o.length;i++)f[i]^=c.mul(o[i],l);let d=0;for(;d<f.length&&f[d]===0;)d++;f=f.slice(d)}return f},h.generateECPolynomial=function(u){let o=new Uint8Array([1]);for(let f=0;f<u;f++)o=h.mul(o,new Uint8Array([1,c.exp(f)]));return o}})(lt)),lt}var dt,Un;function li(){if(Un)return dt;Un=1;const h=ci();function c(s){this.genPoly=void 0,this.degree=s,this.degree&&this.initialize(this.degree)}return c.prototype.initialize=function(u){this.degree=u,this.genPoly=h.generateECPolynomial(this.degree)},c.prototype.encode=function(u){if(!this.genPoly)throw new Error("Encoder not initialized");const o=new Uint8Array(u.length+this.degree);o.set(u);const f=h.mod(o,this.genPoly),l=this.degree-f.length;if(l>0){const d=new Uint8Array(this.degree);return d.set(f,l),d}return f},dt=c,dt}var ht={},st={},vt={},Gn;function sr(){return Gn||(Gn=1,vt.isValid=function(c){return!isNaN(c)&&c>=1&&c<=40}),vt}var L={},zn;function vr(){if(zn)return L;zn=1;const h="[0-9]+",c="[A-Z $%*+\\-./:]+";let s="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";s=s.replace(/u/g,"\\u");const u="(?:(?![A-Z0-9 $%*+\\-./:]|"+s+`)(?:.|[\r
|
|
2
|
+
]))+`;L.KANJI=new RegExp(s,"g"),L.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),L.BYTE=new RegExp(u,"g"),L.NUMERIC=new RegExp(h,"g"),L.ALPHANUMERIC=new RegExp(c,"g");const o=new RegExp("^"+s+"$"),f=new RegExp("^"+h+"$"),l=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return L.testKanji=function(i){return o.test(i)},L.testNumeric=function(i){return f.test(i)},L.testAlphanumeric=function(i){return l.test(i)},L}var Hn;function $(){return Hn||(Hn=1,(function(h){const c=sr(),s=vr();h.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},h.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},h.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},h.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},h.MIXED={bit:-1},h.getCharCountIndicator=function(f,l){if(!f.ccBits)throw new Error("Invalid mode: "+f);if(!c.isValid(l))throw new Error("Invalid version: "+l);return l>=1&&l<10?f.ccBits[0]:l<27?f.ccBits[1]:f.ccBits[2]},h.getBestModeForData=function(f){return s.testNumeric(f)?h.NUMERIC:s.testAlphanumeric(f)?h.ALPHANUMERIC:s.testKanji(f)?h.KANJI:h.BYTE},h.toString=function(f){if(f&&f.id)return f.id;throw new Error("Invalid mode")},h.isValid=function(f){return f&&f.bit&&f.ccBits};function u(o){if(typeof o!="string")throw new Error("Param is not a string");switch(o.toLowerCase()){case"numeric":return h.NUMERIC;case"alphanumeric":return h.ALPHANUMERIC;case"kanji":return h.KANJI;case"byte":return h.BYTE;default:throw new Error("Unknown mode: "+o)}}h.from=function(f,l){if(h.isValid(f))return f;try{return u(f)}catch{return l}}})(st)),st}var Vn;function di(){return Vn||(Vn=1,(function(h){const c=X(),s=hr(),u=St(),o=$(),f=sr(),l=7973,d=c.getBCHDigit(l);function i(n,a,v){for(let g=1;g<=40;g++)if(a<=h.getCapacity(g,v,n))return g}function e(n,a){return o.getCharCountIndicator(n,a)+4}function t(n,a){let v=0;return n.forEach(function(g){const _=e(g.mode,a);v+=_+g.getBitsLength()}),v}function r(n,a){for(let v=1;v<=40;v++)if(t(n,v)<=h.getCapacity(v,a,o.MIXED))return v}h.from=function(a,v){return f.isValid(a)?parseInt(a,10):v},h.getCapacity=function(a,v,g){if(!f.isValid(a))throw new Error("Invalid QR Code version");typeof g>"u"&&(g=o.BYTE);const _=c.getSymbolTotalCodewords(a),y=s.getTotalCodewordsCount(a,v),E=(_-y)*8;if(g===o.MIXED)return E;const R=E-e(g,a);switch(g){case o.NUMERIC:return Math.floor(R/10*3);case o.ALPHANUMERIC:return Math.floor(R/11*2);case o.KANJI:return Math.floor(R/13);case o.BYTE:default:return Math.floor(R/8)}},h.getBestVersionForData=function(a,v){let g;const _=u.from(v,u.M);if(Array.isArray(a)){if(a.length>1)return r(a,_);if(a.length===0)return 1;g=a[0]}else g=a;return i(g.mode,g.getLength(),_)},h.getEncodedBits=function(a){if(!f.isValid(a)||a<7)throw new Error("Invalid QR Code version");let v=a<<12;for(;c.getBCHDigit(v)-d>=0;)v^=l<<c.getBCHDigit(v)-d;return a<<12|v}})(ht)),ht}var gt={},Xn;function hi(){if(Xn)return gt;Xn=1;const h=X(),c=1335,s=21522,u=h.getBCHDigit(c);return gt.getEncodedBits=function(f,l){const d=f.bit<<3|l;let i=d<<10;for(;h.getBCHDigit(i)-u>=0;)i^=c<<h.getBCHDigit(i)-u;return(d<<10|i)^s},gt}var _t={},yt,$n;function si(){if($n)return yt;$n=1;const h=$();function c(s){this.mode=h.NUMERIC,this.data=s.toString()}return c.getBitsLength=function(u){return 10*Math.floor(u/3)+(u%3?u%3*3+1:0)},c.prototype.getLength=function(){return this.data.length},c.prototype.getBitsLength=function(){return c.getBitsLength(this.data.length)},c.prototype.write=function(u){let o,f,l;for(o=0;o+3<=this.data.length;o+=3)f=this.data.substr(o,3),l=parseInt(f,10),u.put(l,10);const d=this.data.length-o;d>0&&(f=this.data.substr(o),l=parseInt(f,10),u.put(l,d*3+1))},yt=c,yt}var Et,Jn;function vi(){if(Jn)return Et;Jn=1;const h=$(),c=["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 s(u){this.mode=h.ALPHANUMERIC,this.data=u}return s.getBitsLength=function(o){return 11*Math.floor(o/2)+6*(o%2)},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(o){let f;for(f=0;f+2<=this.data.length;f+=2){let l=c.indexOf(this.data[f])*45;l+=c.indexOf(this.data[f+1]),o.put(l,11)}this.data.length%2&&o.put(c.indexOf(this.data[f]),6)},Et=s,Et}var pt,Kn;function gi(){if(Kn)return pt;Kn=1;const h=$();function c(s){this.mode=h.BYTE,typeof s=="string"?this.data=new TextEncoder().encode(s):this.data=new Uint8Array(s)}return c.getBitsLength=function(u){return u*8},c.prototype.getLength=function(){return this.data.length},c.prototype.getBitsLength=function(){return c.getBitsLength(this.data.length)},c.prototype.write=function(s){for(let u=0,o=this.data.length;u<o;u++)s.put(this.data[u],8)},pt=c,pt}var Ot,Yn;function _i(){if(Yn)return Ot;Yn=1;const h=$(),c=X();function s(u){this.mode=h.KANJI,this.data=u}return s.getBitsLength=function(o){return o*13},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(u){let o;for(o=0;o<this.data.length;o++){let f=c.toSJIS(this.data[o]);if(f>=33088&&f<=40956)f-=33088;else if(f>=57408&&f<=60351)f-=49472;else throw new Error("Invalid SJIS character: "+this.data[o]+`
|
|
3
|
+
Make sure your charset is UTF-8`);f=(f>>>8&255)*192+(f&255),u.put(f,13)}},Ot=s,Ot}var mt={exports:{}},Qn;function yi(){return Qn||(Qn=1,(function(h){var c={single_source_shortest_paths:function(s,u,o){var f={},l={};l[u]=0;var d=c.PriorityQueue.make();d.push(u,0);for(var i,e,t,r,n,a,v,g,_;!d.empty();){i=d.pop(),e=i.value,r=i.cost,n=s[e]||{};for(t in n)n.hasOwnProperty(t)&&(a=n[t],v=r+a,g=l[t],_=typeof l[t]>"u",(_||g>v)&&(l[t]=v,d.push(t,v),f[t]=e))}if(typeof o<"u"&&typeof l[o]>"u"){var y=["Could not find a path from ",u," to ",o,"."].join("");throw new Error(y)}return f},extract_shortest_path_from_predecessor_list:function(s,u){for(var o=[],f=u;f;)o.push(f),s[f],f=s[f];return o.reverse(),o},find_path:function(s,u,o){var f=c.single_source_shortest_paths(s,u,o);return c.extract_shortest_path_from_predecessor_list(f,o)},PriorityQueue:{make:function(s){var u=c.PriorityQueue,o={},f;s=s||{};for(f in u)u.hasOwnProperty(f)&&(o[f]=u[f]);return o.queue=[],o.sorter=s.sorter||u.default_sorter,o},default_sorter:function(s,u){return s.cost-u.cost},push:function(s,u){var o={value:s,cost:u};this.queue.push(o),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};h.exports=c})(mt)),mt.exports}var Wn;function Ei(){return Wn||(Wn=1,(function(h){const c=$(),s=si(),u=vi(),o=gi(),f=_i(),l=vr(),d=X(),i=yi();function e(y){return unescape(encodeURIComponent(y)).length}function t(y,E,R){const T=[];let C;for(;(C=y.exec(R))!==null;)T.push({data:C[0],index:C.index,mode:E,length:C[0].length});return T}function r(y){const E=t(l.NUMERIC,c.NUMERIC,y),R=t(l.ALPHANUMERIC,c.ALPHANUMERIC,y);let T,C;return d.isKanjiModeEnabled()?(T=t(l.BYTE,c.BYTE,y),C=t(l.KANJI,c.KANJI,y)):(T=t(l.BYTE_KANJI,c.BYTE,y),C=[]),E.concat(R,T,C).sort(function(M,P){return M.index-P.index}).map(function(M){return{data:M.data,mode:M.mode,length:M.length}})}function n(y,E){switch(E){case c.NUMERIC:return s.getBitsLength(y);case c.ALPHANUMERIC:return u.getBitsLength(y);case c.KANJI:return f.getBitsLength(y);case c.BYTE:return o.getBitsLength(y)}}function a(y){return y.reduce(function(E,R){const T=E.length-1>=0?E[E.length-1]:null;return T&&T.mode===R.mode?(E[E.length-1].data+=R.data,E):(E.push(R),E)},[])}function v(y){const E=[];for(let R=0;R<y.length;R++){const T=y[R];switch(T.mode){case c.NUMERIC:E.push([T,{data:T.data,mode:c.ALPHANUMERIC,length:T.length},{data:T.data,mode:c.BYTE,length:T.length}]);break;case c.ALPHANUMERIC:E.push([T,{data:T.data,mode:c.BYTE,length:T.length}]);break;case c.KANJI:E.push([T,{data:T.data,mode:c.BYTE,length:e(T.data)}]);break;case c.BYTE:E.push([{data:T.data,mode:c.BYTE,length:e(T.data)}])}}return E}function g(y,E){const R={},T={start:{}};let C=["start"];for(let S=0;S<y.length;S++){const M=y[S],P=[];for(let p=0;p<M.length;p++){const b=M[p],w=""+S+p;P.push(w),R[w]={node:b,lastCount:0},T[w]={};for(let m=0;m<C.length;m++){const O=C[m];R[O]&&R[O].node.mode===b.mode?(T[O][w]=n(R[O].lastCount+b.length,b.mode)-n(R[O].lastCount,b.mode),R[O].lastCount+=b.length):(R[O]&&(R[O].lastCount=b.length),T[O][w]=n(b.length,b.mode)+4+c.getCharCountIndicator(b.mode,E))}}C=P}for(let S=0;S<C.length;S++)T[C[S]].end=0;return{map:T,table:R}}function _(y,E){let R;const T=c.getBestModeForData(y);if(R=c.from(E,T),R!==c.BYTE&&R.bit<T.bit)throw new Error('"'+y+'" cannot be encoded with mode '+c.toString(R)+`.
|
|
4
|
+
Suggested mode is: `+c.toString(T));switch(R===c.KANJI&&!d.isKanjiModeEnabled()&&(R=c.BYTE),R){case c.NUMERIC:return new s(y);case c.ALPHANUMERIC:return new u(y);case c.KANJI:return new f(y);case c.BYTE:return new o(y)}}h.fromArray=function(E){return E.reduce(function(R,T){return typeof T=="string"?R.push(_(T,null)):T.data&&R.push(_(T.data,T.mode)),R},[])},h.fromString=function(E,R){const T=r(E,d.isKanjiModeEnabled()),C=v(T),S=g(C,R),M=i.find_path(S.map,"start","end"),P=[];for(let p=1;p<M.length-1;p++)P.push(S.table[M[p]].node);return h.fromArray(a(P))},h.rawSplit=function(E){return h.fromArray(r(E,d.isKanjiModeEnabled()))}})(_t)),_t}var Zn;function pi(){if(Zn)return rt;Zn=1;const h=X(),c=St(),s=ri(),u=ii(),o=oi(),f=ai(),l=ui(),d=hr(),i=li(),e=di(),t=hi(),r=$(),n=Ei();function a(S,M){const P=S.size,p=f.getPositions(M);for(let b=0;b<p.length;b++){const w=p[b][0],m=p[b][1];for(let O=-1;O<=7;O++)if(!(w+O<=-1||P<=w+O))for(let A=-1;A<=7;A++)m+A<=-1||P<=m+A||(O>=0&&O<=6&&(A===0||A===6)||A>=0&&A<=6&&(O===0||O===6)||O>=2&&O<=4&&A>=2&&A<=4?S.set(w+O,m+A,!0,!0):S.set(w+O,m+A,!1,!0))}}function v(S){const M=S.size;for(let P=8;P<M-8;P++){const p=P%2===0;S.set(P,6,p,!0),S.set(6,P,p,!0)}}function g(S,M){const P=o.getPositions(M);for(let p=0;p<P.length;p++){const b=P[p][0],w=P[p][1];for(let m=-2;m<=2;m++)for(let O=-2;O<=2;O++)m===-2||m===2||O===-2||O===2||m===0&&O===0?S.set(b+m,w+O,!0,!0):S.set(b+m,w+O,!1,!0)}}function _(S,M){const P=S.size,p=e.getEncodedBits(M);let b,w,m;for(let O=0;O<18;O++)b=Math.floor(O/3),w=O%3+P-8-3,m=(p>>O&1)===1,S.set(b,w,m,!0),S.set(w,b,m,!0)}function y(S,M,P){const p=S.size,b=t.getEncodedBits(M,P);let w,m;for(w=0;w<15;w++)m=(b>>w&1)===1,w<6?S.set(w,8,m,!0):w<8?S.set(w+1,8,m,!0):S.set(p-15+w,8,m,!0),w<8?S.set(8,p-w-1,m,!0):w<9?S.set(8,15-w-1+1,m,!0):S.set(8,15-w-1,m,!0);S.set(p-8,8,1,!0)}function E(S,M){const P=S.size;let p=-1,b=P-1,w=7,m=0;for(let O=P-1;O>0;O-=2)for(O===6&&O--;;){for(let A=0;A<2;A++)if(!S.isReserved(b,O-A)){let q=!1;m<M.length&&(q=(M[m]>>>w&1)===1),S.set(b,O-A,q),w--,w===-1&&(m++,w=7)}if(b+=p,b<0||P<=b){b-=p,p=-p;break}}}function R(S,M,P){const p=new s;P.forEach(function(A){p.put(A.mode.bit,4),p.put(A.getLength(),r.getCharCountIndicator(A.mode,S)),A.write(p)});const b=h.getSymbolTotalCodewords(S),w=d.getTotalCodewordsCount(S,M),m=(b-w)*8;for(p.getLengthInBits()+4<=m&&p.put(0,4);p.getLengthInBits()%8!==0;)p.putBit(0);const O=(m-p.getLengthInBits())/8;for(let A=0;A<O;A++)p.put(A%2?17:236,8);return T(p,S,M)}function T(S,M,P){const p=h.getSymbolTotalCodewords(M),b=d.getTotalCodewordsCount(M,P),w=p-b,m=d.getBlocksCount(M,P),O=p%m,A=m-O,q=Math.floor(p/m),z=Math.floor(w/m),_r=z+1,At=q-z,yr=new i(At);let Qe=0;const le=new Array(m),Pt=new Array(m);let We=0;const Er=new Uint8Array(S.buffer);for(let J=0;J<m;J++){const et=J<A?z:_r;le[J]=Er.slice(Qe,Qe+et),Pt[J]=yr.encode(le[J]),Qe+=et,We=Math.max(We,et)}const Ze=new Uint8Array(p);let Tt=0,j,F;for(j=0;j<We;j++)for(F=0;F<m;F++)j<le[F].length&&(Ze[Tt++]=le[F][j]);for(j=0;j<At;j++)for(F=0;F<m;F++)Ze[Tt++]=Pt[F][j];return Ze}function C(S,M,P,p){let b;if(Array.isArray(S))b=n.fromArray(S);else if(typeof S=="string"){let q=M;if(!q){const z=n.rawSplit(S);q=e.getBestVersionForData(z,P)}b=n.fromString(S,q||40)}else throw new Error("Invalid data");const w=e.getBestVersionForData(b,P);if(!w)throw new Error("The amount of data is too big to be stored in a QR Code");if(!M)M=w;else if(M<w)throw new Error(`
|
|
5
|
+
The chosen QR Code version cannot contain this amount of data.
|
|
6
|
+
Minimum version required to store current data is: `+w+`.
|
|
7
|
+
`);const m=R(M,P,b),O=h.getSymbolSize(M),A=new u(O);return a(A,M),v(A),g(A,M),y(A,P,0),M>=7&&_(A,M),E(A,m),isNaN(p)&&(p=l.getBestMask(A,y.bind(null,A,P))),l.applyMask(p,A),y(A,P,p),{modules:A,version:M,errorCorrectionLevel:P,maskPattern:p,segments:b}}return rt.create=function(M,P){if(typeof M>"u"||M==="")throw new Error("No input text");let p=c.M,b,w;return typeof P<"u"&&(p=c.from(P.errorCorrectionLevel,c.M),b=e.from(P.version),w=l.from(P.maskPattern),P.toSJISFunc&&h.setToSJISFunction(P.toSJISFunc)),C(M,b,p,w)},rt}var wt={},bt={},er;function gr(){return er||(er=1,(function(h){function c(s){if(typeof s=="number"&&(s=s.toString()),typeof s!="string")throw new Error("Color should be defined as hex string");let u=s.slice().replace("#","").split("");if(u.length<3||u.length===5||u.length>8)throw new Error("Invalid hex color: "+s);(u.length===3||u.length===4)&&(u=Array.prototype.concat.apply([],u.map(function(f){return[f,f]}))),u.length===6&&u.push("F","F");const o=parseInt(u.join(""),16);return{r:o>>24&255,g:o>>16&255,b:o>>8&255,a:o&255,hex:"#"+u.slice(0,6).join("")}}h.getOptions=function(u){u||(u={}),u.color||(u.color={});const o=typeof u.margin>"u"||u.margin===null||u.margin<0?4:u.margin,f=u.width&&u.width>=21?u.width:void 0,l=u.scale||4;return{width:f,scale:f?4:l,margin:o,color:{dark:c(u.color.dark||"#000000ff"),light:c(u.color.light||"#ffffffff")},type:u.type,rendererOpts:u.rendererOpts||{}}},h.getScale=function(u,o){return o.width&&o.width>=u+o.margin*2?o.width/(u+o.margin*2):o.scale},h.getImageWidth=function(u,o){const f=h.getScale(u,o);return Math.floor((u+o.margin*2)*f)},h.qrToImageData=function(u,o,f){const l=o.modules.size,d=o.modules.data,i=h.getScale(l,f),e=Math.floor((l+f.margin*2)*i),t=f.margin*i,r=[f.color.light,f.color.dark];for(let n=0;n<e;n++)for(let a=0;a<e;a++){let v=(n*e+a)*4,g=f.color.light;if(n>=t&&a>=t&&n<e-t&&a<e-t){const _=Math.floor((n-t)/i),y=Math.floor((a-t)/i);g=r[d[_*l+y]?1:0]}u[v++]=g.r,u[v++]=g.g,u[v++]=g.b,u[v]=g.a}}})(bt)),bt}var tr;function Oi(){return tr||(tr=1,(function(h){const c=gr();function s(o,f,l){o.clearRect(0,0,f.width,f.height),f.style||(f.style={}),f.height=l,f.width=l,f.style.height=l+"px",f.style.width=l+"px"}function u(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}h.render=function(f,l,d){let i=d,e=l;typeof i>"u"&&(!l||!l.getContext)&&(i=l,l=void 0),l||(e=u()),i=c.getOptions(i);const t=c.getImageWidth(f.modules.size,i),r=e.getContext("2d"),n=r.createImageData(t,t);return c.qrToImageData(n.data,f,i),s(r,e,t),r.putImageData(n,0,0),e},h.renderToDataURL=function(f,l,d){let i=d;typeof i>"u"&&(!l||!l.getContext)&&(i=l,l=void 0),i||(i={});const e=h.render(f,l,i),t=i.type||"image/png",r=i.rendererOpts||{};return e.toDataURL(t,r.quality)}})(wt)),wt}var Rt={},nr;function mi(){if(nr)return Rt;nr=1;const h=gr();function c(o,f){const l=o.a/255,d=f+'="'+o.hex+'"';return l<1?d+" "+f+'-opacity="'+l.toFixed(2).slice(1)+'"':d}function s(o,f,l){let d=o+f;return typeof l<"u"&&(d+=" "+l),d}function u(o,f,l){let d="",i=0,e=!1,t=0;for(let r=0;r<o.length;r++){const n=Math.floor(r%f),a=Math.floor(r/f);!n&&!e&&(e=!0),o[r]?(t++,r>0&&n>0&&o[r-1]||(d+=e?s("M",n+l,.5+a+l):s("m",i,0),i=0,e=!1),n+1<f&&o[r+1]||(d+=s("h",t),t=0)):i++}return d}return Rt.render=function(f,l,d){const i=h.getOptions(l),e=f.modules.size,t=f.modules.data,r=e+i.margin*2,n=i.color.light.a?"<path "+c(i.color.light,"fill")+' d="M0 0h'+r+"v"+r+'H0z"/>':"",a="<path "+c(i.color.dark,"stroke")+' d="'+u(t,e,i.margin)+'"/>',v='viewBox="0 0 '+r+" "+r+'"',_='<svg xmlns="http://www.w3.org/2000/svg" '+(i.width?'width="'+i.width+'" height="'+i.width+'" ':"")+v+' shape-rendering="crispEdges">'+n+a+`</svg>
|
|
8
|
+
`;return typeof d=="function"&&d(null,_),_},Rt}var rr;function bi(){if(rr)return W;rr=1;const h=ni(),c=pi(),s=Oi(),u=mi();function o(f,l,d,i,e){const t=[].slice.call(arguments,1),r=t.length,n=typeof t[r-1]=="function";if(!n&&!h())throw new Error("Callback required as last argument");if(n){if(r<2)throw new Error("Too few arguments provided");r===2?(e=d,d=l,l=i=void 0):r===3&&(l.getContext&&typeof e>"u"?(e=i,i=void 0):(e=i,i=d,d=l,l=void 0))}else{if(r<1)throw new Error("Too few arguments provided");return r===1?(d=l,l=i=void 0):r===2&&!l.getContext&&(i=d,d=l,l=void 0),new Promise(function(a,v){try{const g=c.create(d,i);a(f(g,l,i))}catch(g){v(g)}})}try{const a=c.create(d,i);e(null,f(a,l,i))}catch(a){e(a)}}return W.create=c.create,W.toCanvas=o.bind(null,s.render),W.toDataURL=o.bind(null,s.renderToDataURL),W.toString=o.bind(null,function(f,l,d){return u.render(f,d)}),W}export{bi as a,wi as r};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as f}from"./canvg-ChoTXRpY.js";import{a as i}from"./barcode-BoWGE6Vo.js";function c(t,a){for(var o=0;o<a.length;o++){const e=a[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const s=Object.getOwnPropertyDescriptor(e,r);s&&Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var n=i();const p=f(n),g=c({__proto__:null,default:p},[n]);export{g as b};
|