moreShopAdmin/build/admin/assets/jsbarcode.39151b53.js

2 lines
61 KiB
JavaScript
Raw Normal View History

2024-11-04 16:27:12 +08:00
var J={},L={},Q={},Be;function M(){if(Be)return Q;Be=1,Object.defineProperty(Q,"__esModule",{value:!0});function s(v,l){if(!(v instanceof l))throw new TypeError("Cannot call a class as a function")}var h=function v(l,d){s(this,v),this.data=l,this.text=d.text||l,this.options=d};return Q.default=h,Q}var je;function Gt(){if(je)return L;je=1,Object.defineProperty(L,"__esModule",{value:!0}),L.CODE39=void 0;var s=function(){function o(y,p){for(var g=0;g<p.length;g++){var m=p[g];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(y,m.key,m)}}return function(y,p,g){return p&&o(y.prototype,p),g&&o(y,g),y}}(),h=M(),v=l(h);function l(o){return o&&o.__esModule?o:{default:o}}function d(o,y){if(!(o instanceof y))throw new TypeError("Cannot call a class as a function")}function _(o,y){if(!o)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:o}function c(o,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);o.prototype=Object.create(y&&y.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(o,y):o.__proto__=y)}var f=function(o){c(y,o);function y(p,g){return d(this,y),p=p.toUpperCase(),g.mod43&&(p+=r(u(p))),_(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,p,g))}return s(y,[{key:"encode",value:function(){for(var g=t("*"),m=0;m<this.data.length;m++)g+=t(this.data[m])+"0";return g+=t("*"),{data:g,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/)!==-1}}]),y}(v.default),a=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%","*"],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(o){return n(i(o))}function n(o){return e[o].toString(2)}function r(o){return a[o]}function i(o){return a.indexOf(o)}function u(o){for(var y=0,p=0;p<o.length;p++)y+=i(o[p]);return y=y%43,y}return L.CODE39=f,L}var I={},W={},Y={},S={},Le;function H(){if(Le)return S;Le=1,Object.defineProperty(S,"__esModule",{value:!0});var s;function h(a,e,t){return e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}var v=S.SET_A=0,l=S.SET_B=1,d=S.SET_C=2;S.SHIFT=98;var _=S.START_A=103,c=S.START_B=104,f=S.START_C=105;return S.MODULO=103,S.STOP=106,S.FNC1=207,S.SET_BY_CODE=(s={},h(s,_,v),h(s,c,l),h(s,f,d),s),S.SWAP={101:v,100:l,99:d},S.A_START_CHAR=String.fromCharCode(208),S.B_START_CHAR=String.fromCharCode(209),S.C_START_CHAR=String.fromCharCode(210),S.A_CHARS="[\0-_\xC8-\xCF]",S.B_CHARS="[ -\x7F\xC8-\xCF]",S.C_CHARS="(\xCF*[0-9]{2}\xCF*)",S.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,1111001001