UNPKG

rescode

Version:

Generate Codes (EAN13, QRCODE ..)

1,090 lines 79.8 kB
var BWIPJS = require("../bwip.js"); // file: bwipp/upce.js // // This code was automatically generated from: // Barcode Writer in Pure PostScript - Version 2013-01-25 // // Copyright (c) 2011-2013 Mark Warren // Copyright (c) 2004-2013 Terry Burton // // See the LICENSE file in the bwip.js root directory // for the extended copyright notice. // BEGIN upce if (!BWIPJS.bwipp["renlinear"]) BWIPJS.load("bwipp/renlinear.js"); if (!BWIPJS.bwipp["ean2"]) BWIPJS.load("bwipp/ean2.js"); if (!BWIPJS.bwipp["ean5"]) BWIPJS.load("bwipp/ean5.js"); BWIPJS.bwipp["upce"]=function() { this.dict["renlinear"]=BWIPJS.bwipp["renlinear"]; this.dict["ean2"]=BWIPJS.bwipp["ean2"]; this.dict["ean5"]=BWIPJS.bwipp["ean5"]; function $f0(){ return -1; } function $f1(){ var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; this.ptr--; var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; } function $f2(){ this.stk[this.ptr++]=true; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; } function $f3(){ var a=/^\s*([^\s]+)(\s+.*)?$/.exec(this.stk[this.ptr-1]); if (a) { this.stk[this.ptr-1]=BWIPJS.psstring(a[2]===undefined?"":a[2]); this.stk[this.ptr++]=BWIPJS.psstring(a[1]); this.stk[this.ptr++]=true; } else { this.stk[this.ptr-1]=false; } this.stk[this.ptr++]=false; if (this.stk[this.ptr-2] instanceof BWIPJS.psstring) this.stk[this.ptr-2]=this.stk[this.ptr-2].toString()==this.stk[this.ptr-1]; else this.stk[this.ptr-2]=this.stk[this.ptr-2]==this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=$f0; var t0=this.stk[--this.ptr]; if (this.stk[--this.ptr]) { if (t0.call(this)==-1) return -1; } this.stk[this.ptr]=this.stk[this.ptr-1]; this.ptr++; if (typeof(this.stk[this.ptr-1].length)!=="number") throw "length: invalid: " + BWIPJS.pstype(this.stk[this.ptr-1]); this.stk[this.ptr-1]=this.stk[this.ptr-1].length; this.stk[this.ptr-1]=BWIPJS.psstring(this.stk[this.ptr-1]); var t=this.stk[this.ptr-2].toString(); this.stk[this.ptr-1].assign(0,t); this.stk[this.ptr-2]=this.stk[this.ptr-1].subset(0,t.length); this.ptr--; this.stk[this.ptr++]=BWIPJS.psstring("="); var h=this.stk[this.ptr-2]; var t=h.indexOf(this.stk[this.ptr-1]); if (t==-1) { this.stk[this.ptr-1]=false; } else { this.stk[this.ptr-2]=h.subset(t+this.stk[this.ptr-1].length); this.stk[this.ptr-1]=h.subset(t,this.stk[this.ptr-1].length); this.stk[this.ptr++]=h.subset(0,t); this.stk[this.ptr++]=true; } this.stk[this.ptr++]=true; if (this.stk[this.ptr-2] instanceof BWIPJS.psstring) this.stk[this.ptr-2]=this.stk[this.ptr-2].toString()==this.stk[this.ptr-1]; else this.stk[this.ptr-2]=this.stk[this.ptr-2]==this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=$f1; this.stk[this.ptr++]=$f2; var t1=this.stk[--this.ptr]; var t2=this.stk[--this.ptr]; if (this.stk[--this.ptr]) { if (t2.call(this)==-1) return -1; } else { if (t1.call(this)==-1) return -1; } } function $f4(){ this.stk[this.ptr++]=1; this.stk[this.ptr-1]={}; this.dict=this.stk[--this.ptr]; this.dstk.push(this.dict); var t=this.dstk.get("options"); if (t===undefined) throw new Error("dict: options: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=$f3; var t3=this.stk[--this.ptr]; while (true) { if (t3.call(this)==-1) break; } this.stk[this.ptr++]=this.dict; this.dstk.pop(); this.dict=this.dstk[this.dstk.length-1]; this.stk[this.ptr++]="options"; //ident var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; } function $f5(){ this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; } function $f6(){ this.stk[this.ptr++]="addontextfont"; //ident var t=this.dstk.get("addontextfont"); if (t===undefined) throw new Error("dict: addontextfont: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; } function $f7(){ this.stk[this.ptr++]="addontextsize"; //ident var t=this.dstk.get("addontextsize"); if (t===undefined) throw new Error("dict: addontextsize: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr-1]=parseFloat(this.stk[this.ptr-1]); this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; } function $f8(){ this.stk[this.ptr++]="addontextxoffset"; //ident var t=this.dstk.get("addontextxoffset"); if (t===undefined) throw new Error("dict: addontextxoffset: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr-1]=parseFloat(this.stk[this.ptr-1]); this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; } function $f9(){ this.stk[this.ptr++]="addontextyoffset"; //ident var t=this.dstk.get("addontextyoffset"); if (t===undefined) throw new Error("dict: addontextyoffset: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr-1]=parseFloat(this.stk[this.ptr-1]); this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; } function $f10(){ this.stk[this.ptr++]="barcode"; //ident this.stk[this.ptr++]=BWIPJS.psstring(""); this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; } function $f11(){ this.stk[this.ptr++]="barcode"; //ident var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.ptr--; this.stk[this.ptr++]="addon"; //ident var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; } function $f12(){ this.ptr--; this.stk[this.ptr++]="addon"; //ident this.stk[this.ptr++]=BWIPJS.psstring(""); this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; } function $f13(){ var t=this.dstk.get("upcacode"); if (t===undefined) throw new Error("dict: upcacode: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=1; var t=this.dstk.get("barcode"); if (t===undefined) throw new Error("dict: barcode: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=1; this.stk[this.ptr++]=2; this.stk[this.ptr-3]=this.stk[this.ptr-3].subset(this.stk[this.ptr-2],this.stk[this.ptr-1]); this.ptr-=2; this.stk[this.ptr-3].assign(this.stk[this.ptr-2],this.stk[this.ptr-1]); this.ptr-=3; var t=this.dstk.get("upcacode"); if (t===undefined) throw new Error("dict: upcacode: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=3; var t=this.dstk.get("barcode"); if (t===undefined) throw new Error("dict: barcode: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=6; this.stk[this.ptr++]=1; this.stk[this.ptr-3]=this.stk[this.ptr-3].subset(this.stk[this.ptr-2],this.stk[this.ptr-1]); this.ptr-=2; this.stk[this.ptr-3].assign(this.stk[this.ptr-2],this.stk[this.ptr-1]); this.ptr-=3; var t=this.dstk.get("upcacode"); if (t===undefined) throw new Error("dict: upcacode: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=8; var t=this.dstk.get("barcode"); if (t===undefined) throw new Error("dict: barcode: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=3; this.stk[this.ptr++]=3; this.stk[this.ptr-3]=this.stk[this.ptr-3].subset(this.stk[this.ptr-2],this.stk[this.ptr-1]); this.ptr-=2; this.stk[this.ptr-3].assign(this.stk[this.ptr-2],this.stk[this.ptr-1]); this.ptr-=3; } function $f14(){ var t=this.dstk.get("upcacode"); if (t===undefined) throw new Error("dict: upcacode: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=1; var t=this.dstk.get("barcode"); if (t===undefined) throw new Error("dict: barcode: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=1; this.stk[this.ptr++]=3; this.stk[this.ptr-3]=this.stk[this.ptr-3].subset(this.stk[this.ptr-2],this.stk[this.ptr-1]); this.ptr-=2; this.stk[this.ptr-3].assign(this.stk[this.ptr-2],this.stk[this.ptr-1]); this.ptr-=3; var t=this.dstk.get("upcacode"); if (t===undefined) throw new Error("dict: upcacode: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=9; var t=this.dstk.get("barcode"); if (t===undefined) throw new Error("dict: barcode: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=4; this.stk[this.ptr++]=2; this.stk[this.ptr-3]=this.stk[this.ptr-3].subset(this.stk[this.ptr-2],this.stk[this.ptr-1]); this.ptr-=2; this.stk[this.ptr-3].assign(this.stk[this.ptr-2],this.stk[this.ptr-1]); this.ptr-=3; } function $f15(){ var t=this.dstk.get("upcacode"); if (t===undefined) throw new Error("dict: upcacode: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=1; var t=this.dstk.get("barcode"); if (t===undefined) throw new Error("dict: barcode: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=1; this.stk[this.ptr++]=4; this.stk[this.ptr-3]=this.stk[this.ptr-3].subset(this.stk[this.ptr-2],this.stk[this.ptr-1]); this.ptr-=2; this.stk[this.ptr-3].assign(this.stk[this.ptr-2],this.stk[this.ptr-1]); this.ptr-=3; var t=this.dstk.get("upcacode"); if (t===undefined) throw new Error("dict: upcacode: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=10; var t=this.dstk.get("barcode"); if (t===undefined) throw new Error("dict: barcode: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=5; this.stk[this.ptr++]=1; this.stk[this.ptr-3]=this.stk[this.ptr-3].subset(this.stk[this.ptr-2],this.stk[this.ptr-1]); this.ptr-=2; this.stk[this.ptr-3].assign(this.stk[this.ptr-2],this.stk[this.ptr-1]); this.ptr-=3; } function $f16(){ var t=this.dstk.get("upcacode"); if (t===undefined) throw new Error("dict: upcacode: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=1; var t=this.dstk.get("barcode"); if (t===undefined) throw new Error("dict: barcode: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=1; this.stk[this.ptr++]=5; this.stk[this.ptr-3]=this.stk[this.ptr-3].subset(this.stk[this.ptr-2],this.stk[this.ptr-1]); this.ptr-=2; this.stk[this.ptr-3].assign(this.stk[this.ptr-2],this.stk[this.ptr-1]); this.ptr-=3; var t=this.dstk.get("upcacode"); if (t===undefined) throw new Error("dict: upcacode: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=10; var t=this.dstk.get("barcode"); if (t===undefined) throw new Error("dict: barcode: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=6; this.stk[this.ptr++]=1; this.stk[this.ptr-3]=this.stk[this.ptr-3].subset(this.stk[this.ptr-2],this.stk[this.ptr-1]); this.ptr-=2; this.stk[this.ptr-3].assign(this.stk[this.ptr-2],this.stk[this.ptr-1]); this.ptr-=3; } function $f17(){ this.stk[this.ptr++]="checksum"; //ident var t=this.dstk.get("checksum"); if (t===undefined) throw new Error("dict: checksum: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.dstk.get("barchar"); if (t===undefined) throw new Error("dict: barchar: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr-2]=this.stk[this.ptr-2]+this.stk[this.ptr-1]; this.ptr--; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; } function $f18(){ this.stk[this.ptr++]="checksum"; //ident var t=this.dstk.get("checksum"); if (t===undefined) throw new Error("dict: checksum: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.dstk.get("barchar"); if (t===undefined) throw new Error("dict: barchar: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=3; this.stk[this.ptr-2]=this.stk[this.ptr-2]*this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr-2]=this.stk[this.ptr-2]+this.stk[this.ptr-1]; this.ptr--; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; } function $f19(){ this.stk[this.ptr++]="i"; //ident var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]="barchar"; //ident var t=this.dstk.get("upcacode"); if (t===undefined) throw new Error("dict: upcacode: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.dstk.get("i"); if (t===undefined) throw new Error("dict: i: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; if (this.stk[this.ptr-2] instanceof BWIPJS.psstring || this.stk[this.ptr-2] instanceof BWIPJS.psarray) this.stk[this.ptr-2]=this.stk[this.ptr-2].get(this.stk[this.ptr-1]); else this.stk[this.ptr-2]=this.stk[this.ptr-2][this.stk[this.ptr-1].toString()]; this.ptr--; this.stk[this.ptr++]=48; this.stk[this.ptr-2]=this.stk[this.ptr-2]-this.stk[this.ptr-1]; this.ptr--; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; var t=this.dstk.get("i"); if (t===undefined) throw new Error("dict: i: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=2; this.stk[this.ptr-2]=this.stk[this.ptr-2]%this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=0; if (this.stk[this.ptr-2] instanceof BWIPJS.psstring) this.stk[this.ptr-2]=this.stk[this.ptr-2].toString()!=this.stk[this.ptr-1]; else this.stk[this.ptr-2]=this.stk[this.ptr-2]!=this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=$f17; this.stk[this.ptr++]=$f18; var t19=this.stk[--this.ptr]; var t20=this.stk[--this.ptr]; if (this.stk[--this.ptr]) { if (t20.call(this)==-1) return -1; } else { if (t19.call(this)==-1) return -1; } } function $f20(){ var t=this.dstk.get("invt"); if (t===undefined) throw new Error("dict: invt: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.dstk.get("i"); if (t===undefined) throw new Error("dict: i: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=49; if (this.stk[this.ptr-3] instanceof BWIPJS.psstring || this.stk[this.ptr-3] instanceof BWIPJS.psarray) this.stk[this.ptr-3].set(this.stk[this.ptr-2], this.stk[this.ptr-1]); else this.stk[this.ptr-3][this.stk[this.ptr-2].toString()]=this.stk[this.ptr-1]; this.ptr-=3; } function $f21(){ var t=this.dstk.get("invt"); if (t===undefined) throw new Error("dict: invt: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.dstk.get("i"); if (t===undefined) throw new Error("dict: i: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=48; if (this.stk[this.ptr-3] instanceof BWIPJS.psstring || this.stk[this.ptr-3] instanceof BWIPJS.psarray) this.stk[this.ptr-3].set(this.stk[this.ptr-2], this.stk[this.ptr-1]); else this.stk[this.ptr-3][this.stk[this.ptr-2].toString()]=this.stk[this.ptr-1]; this.ptr-=3; } function $f22(){ this.stk[this.ptr++]="i"; //ident var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; var t=this.dstk.get("mirrormap"); if (t===undefined) throw new Error("dict: mirrormap: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.dstk.get("i"); if (t===undefined) throw new Error("dict: i: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; if (this.stk[this.ptr-2] instanceof BWIPJS.psstring || this.stk[this.ptr-2] instanceof BWIPJS.psarray) this.stk[this.ptr-2]=this.stk[this.ptr-2].get(this.stk[this.ptr-1]); else this.stk[this.ptr-2]=this.stk[this.ptr-2][this.stk[this.ptr-1].toString()]; this.ptr--; this.stk[this.ptr++]=48; if (this.stk[this.ptr-2] instanceof BWIPJS.psstring) this.stk[this.ptr-2]=this.stk[this.ptr-2].toString()==this.stk[this.ptr-1]; else this.stk[this.ptr-2]=this.stk[this.ptr-2]==this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=$f20; this.stk[this.ptr++]=$f21; var t26=this.stk[--this.ptr]; var t27=this.stk[--this.ptr]; if (this.stk[--this.ptr]) { if (t27.call(this)==-1) return -1; } else { if (t26.call(this)==-1) return -1; } } function $f23(){ this.stk[this.ptr++]="invt"; //ident var t=this.dstk.get("mirrormap"); if (t===undefined) throw new Error("dict: mirrormap: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; if (typeof(this.stk[this.ptr-1].length)!=="number") throw "length: invalid: " + BWIPJS.pstype(this.stk[this.ptr-1]); this.stk[this.ptr-1]=this.stk[this.ptr-1].length; this.stk[this.ptr-1]=BWIPJS.psstring(this.stk[this.ptr-1]); this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]=0; this.stk[this.ptr++]=1; var t=this.dstk.get("mirrormap"); if (t===undefined) throw new Error("dict: mirrormap: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; if (typeof(this.stk[this.ptr-1].length)!=="number") throw "length: invalid: " + BWIPJS.pstype(this.stk[this.ptr-1]); this.stk[this.ptr-1]=this.stk[this.ptr-1].length; this.stk[this.ptr++]=1; this.stk[this.ptr-2]=this.stk[this.ptr-2]-this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=$f22; var t32=this.stk[--this.ptr]; var t30=this.stk[--this.ptr]; var t29=this.stk[--this.ptr]; var t28=this.stk[--this.ptr]; for (var t31=t28; t29<0 ? t31>=t30 : t31<=t30; t31+=t29) { this.stk[this.ptr++]=t31; if (t32.call(this)==-1) break; } this.stk[this.ptr++]="mirrormap"; //ident var t=this.dstk.get("invt"); if (t===undefined) throw new Error("dict: invt: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; } function $f24(){ this.stk[this.ptr++]="j"; //ident var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]="char"; //ident var t=this.dstk.get("enc"); if (t===undefined) throw new Error("dict: enc: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.dstk.get("j"); if (t===undefined) throw new Error("dict: j: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; if (this.stk[this.ptr-2] instanceof BWIPJS.psstring || this.stk[this.ptr-2] instanceof BWIPJS.psarray) this.stk[this.ptr-2]=this.stk[this.ptr-2].get(this.stk[this.ptr-1]); else this.stk[this.ptr-2]=this.stk[this.ptr-2][this.stk[this.ptr-1].toString()]; this.ptr--; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; var t=this.dstk.get("revenc"); if (t===undefined) throw new Error("dict: revenc: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.dstk.get("enclen"); if (t===undefined) throw new Error("dict: enclen: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.dstk.get("j"); if (t===undefined) throw new Error("dict: j: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr-2]=this.stk[this.ptr-2]-this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=1; this.stk[this.ptr-2]=this.stk[this.ptr-2]-this.stk[this.ptr-1]; this.ptr--; var t=this.dstk.get("char"); if (t===undefined) throw new Error("dict: char: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; if (this.stk[this.ptr-3] instanceof BWIPJS.psstring || this.stk[this.ptr-3] instanceof BWIPJS.psarray) this.stk[this.ptr-3].set(this.stk[this.ptr-2], this.stk[this.ptr-1]); else this.stk[this.ptr-3][this.stk[this.ptr-2].toString()]=this.stk[this.ptr-1]; this.ptr-=3; } function $f25(){ this.stk[this.ptr++]="enclen"; //ident var t=this.dstk.get("enc"); if (t===undefined) throw new Error("dict: enc: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; if (typeof(this.stk[this.ptr-1].length)!=="number") throw "length: invalid: " + BWIPJS.pstype(this.stk[this.ptr-1]); this.stk[this.ptr-1]=this.stk[this.ptr-1].length; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]="revenc"; //ident var t=this.dstk.get("enclen"); if (t===undefined) throw new Error("dict: enclen: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr-1]=BWIPJS.psstring(this.stk[this.ptr-1]); this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]=0; this.stk[this.ptr++]=1; var t=this.dstk.get("enclen"); if (t===undefined) throw new Error("dict: enclen: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=1; this.stk[this.ptr-2]=this.stk[this.ptr-2]-this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=$f24; var t38=this.stk[--this.ptr]; var t36=this.stk[--this.ptr]; var t35=this.stk[--this.ptr]; var t34=this.stk[--this.ptr]; for (var t37=t34; t35<0 ? t37>=t36 : t37<=t36; t37+=t35) { this.stk[this.ptr++]=t37; if (t38.call(this)==-1) break; } this.stk[this.ptr++]="enc"; //ident var t=this.dstk.get("revenc"); if (t===undefined) throw new Error("dict: revenc: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; } function $f26(){ this.stk[this.ptr++]="i"; //ident var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; var t=this.dstk.get("barcode"); if (t===undefined) throw new Error("dict: barcode: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.dstk.get("i"); if (t===undefined) throw new Error("dict: i: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=1; this.stk[this.ptr-3]=this.stk[this.ptr-3].subset(this.stk[this.ptr-2],this.stk[this.ptr-1]); this.ptr-=2; var t=this.dstk.get("barchars"); if (t===undefined) throw new Error("dict: barchars: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; var h=this.stk[this.ptr-2]; var t=h.indexOf(this.stk[this.ptr-1]); if (t==-1) { this.stk[this.ptr-1]=false; } else { this.stk[this.ptr-2]=h.subset(t+this.stk[this.ptr-1].length); this.stk[this.ptr-1]=h.subset(t,this.stk[this.ptr-1].length); this.stk[this.ptr++]=h.subset(0,t); this.stk[this.ptr++]=true; } this.ptr--; if (typeof(this.stk[this.ptr-1].length)!=="number") throw "length: invalid: " + BWIPJS.pstype(this.stk[this.ptr-1]); this.stk[this.ptr-1]=this.stk[this.ptr-1].length; this.stk[this.ptr++]="indx"; //ident var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.ptr--; this.ptr--; this.stk[this.ptr++]="enc"; //ident var t=this.dstk.get("encs"); if (t===undefined) throw new Error("dict: encs: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.dstk.get("indx"); if (t===undefined) throw new Error("dict: indx: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; if (this.stk[this.ptr-2] instanceof BWIPJS.psstring || this.stk[this.ptr-2] instanceof BWIPJS.psarray) this.stk[this.ptr-2]=this.stk[this.ptr-2].get(this.stk[this.ptr-1]); else this.stk[this.ptr-2]=this.stk[this.ptr-2][this.stk[this.ptr-1].toString()]; this.ptr--; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; var t=this.dstk.get("mirrormap"); if (t===undefined) throw new Error("dict: mirrormap: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.dstk.get("i"); if (t===undefined) throw new Error("dict: i: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=1; this.stk[this.ptr-2]=this.stk[this.ptr-2]-this.stk[this.ptr-1]; this.ptr--; if (this.stk[this.ptr-2] instanceof BWIPJS.psstring || this.stk[this.ptr-2] instanceof BWIPJS.psarray) this.stk[this.ptr-2]=this.stk[this.ptr-2].get(this.stk[this.ptr-1]); else this.stk[this.ptr-2]=this.stk[this.ptr-2][this.stk[this.ptr-1].toString()]; this.ptr--; this.stk[this.ptr++]=49; if (this.stk[this.ptr-2] instanceof BWIPJS.psstring) this.stk[this.ptr-2]=this.stk[this.ptr-2].toString()==this.stk[this.ptr-1]; else this.stk[this.ptr-2]=this.stk[this.ptr-2]==this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=$f25; var t39=this.stk[--this.ptr]; if (this.stk[--this.ptr]) { if (t39.call(this)==-1) return -1; } var t=this.dstk.get("sbs"); if (t===undefined) throw new Error("dict: sbs: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.dstk.get("i"); if (t===undefined) throw new Error("dict: i: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=1; this.stk[this.ptr-2]=this.stk[this.ptr-2]-this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=4; this.stk[this.ptr-2]=this.stk[this.ptr-2]*this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=3; this.stk[this.ptr-2]=this.stk[this.ptr-2]+this.stk[this.ptr-1]; this.ptr--; var t=this.dstk.get("enc"); if (t===undefined) throw new Error("dict: enc: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr-3].assign(this.stk[this.ptr-2],this.stk[this.ptr-1]); this.ptr-=3; var t=this.dstk.get("txt"); if (t===undefined) throw new Error("dict: txt: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.dstk.get("i"); if (t===undefined) throw new Error("dict: i: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=Infinity; var t=this.dstk.get("barcode"); if (t===undefined) throw new Error("dict: barcode: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.dstk.get("i"); if (t===undefined) throw new Error("dict: i: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=1; this.stk[this.ptr-3]=this.stk[this.ptr-3].subset(this.stk[this.ptr-2],this.stk[this.ptr-1]); this.ptr-=2; var t=this.dstk.get("i"); if (t===undefined) throw new Error("dict: i: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=1; this.stk[this.ptr-2]=this.stk[this.ptr-2]-this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=7; this.stk[this.ptr-2]=this.stk[this.ptr-2]*this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=11; this.stk[this.ptr-2]=this.stk[this.ptr-2]+this.stk[this.ptr-1]; this.ptr--; var t=this.dstk.get("textxoffset"); if (t===undefined) throw new Error("dict: textxoffset: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr-2]=this.stk[this.ptr-2]+this.stk[this.ptr-1]; this.ptr--; var t=this.dstk.get("textyoffset"); if (t===undefined) throw new Error("dict: textyoffset: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.dstk.get("textfont"); if (t===undefined) throw new Error("dict: textfont: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.dstk.get("textsize"); if (t===undefined) throw new Error("dict: textsize: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; for (var i = this.ptr-1; i >= 0 && this.stk[i] !== Infinity; i--) ; if (i < 0) throw "array: underflow"; var t = this.stk.splice(i+1, this.ptr-1-i); this.ptr = i; this.stk[this.ptr++]=BWIPJS.psarray(t); if (this.stk[this.ptr-3] instanceof BWIPJS.psstring || this.stk[this.ptr-3] instanceof BWIPJS.psarray) this.stk[this.ptr-3].set(this.stk[this.ptr-2], this.stk[this.ptr-1]); else this.stk[this.ptr-3][this.stk[this.ptr-2].toString()]=this.stk[this.ptr-1]; this.ptr-=3; } function $f27(){ this.stk[this.ptr++]=48; this.stk[this.ptr-2]=this.stk[this.ptr-2]-this.stk[this.ptr-1]; this.ptr--; } function $f28(){ var t=this.dstk.get("height"); if (t===undefined) throw new Error("dict: height: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=0.075; this.stk[this.ptr-2]=this.stk[this.ptr-2]-this.stk[this.ptr-1]; this.ptr--; } function $f29(){ this.stk[this.ptr++]=0.075; } function $f30(){ this.stk[this.ptr++]="bhs"; //ident this.stk[this.ptr++]=Infinity; var t=this.dstk.get("height"); if (t===undefined) throw new Error("dict: height: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.dstk.get("height"); if (t===undefined) throw new Error("dict: height: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=12; this.stk[this.ptr++]=$f28; var t50=this.stk[--this.ptr]; var t48=this.stk[--this.ptr]; for (var t49=0; t49<t48; t49++) { if (t50.call(this)==-1) break; } var t=this.dstk.get("height"); if (t===undefined) throw new Error("dict: height: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.dstk.get("height"); if (t===undefined) throw new Error("dict: height: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.dstk.get("height"); if (t===undefined) throw new Error("dict: height: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; for (var i = this.ptr-1; i >= 0 && this.stk[i] !== Infinity; i--) ; if (i < 0) throw "array: underflow"; var t = this.stk.splice(i+1, this.ptr-1-i); this.ptr = i; this.stk[this.ptr++]=BWIPJS.psarray(t); this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]="bbs"; //ident this.stk[this.ptr++]=Infinity; this.stk[this.ptr++]=0; this.stk[this.ptr++]=0; this.stk[this.ptr++]=12; this.stk[this.ptr++]=$f29; var t53=this.stk[--this.ptr]; var t51=this.stk[--this.ptr]; for (var t52=0; t52<t51; t52++) { if (t53.call(this)==-1) break; } this.stk[this.ptr++]=0; this.stk[this.ptr++]=0; this.stk[this.ptr++]=0; for (var i = this.ptr-1; i >= 0 && this.stk[i] !== Infinity; i--) ; if (i < 0) throw "array: underflow"; var t = this.stk.splice(i+1, this.ptr-1-i); this.ptr = i; this.stk[this.ptr++]=BWIPJS.psarray(t); this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; } function $f31(){ var t=this.dstk.get("height"); if (t===undefined) throw new Error("dict: height: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; } function $f32(){ this.stk[this.ptr++]=0; } function $f33(){ this.stk[this.ptr++]="bhs"; //ident this.stk[this.ptr++]=Infinity; this.stk[this.ptr++]=17; this.stk[this.ptr++]=$f31; var t56=this.stk[--this.ptr]; var t54=this.stk[--this.ptr]; for (var t55=0; t55<t54; t55++) { if (t56.call(this)==-1) break; } for (var i = this.ptr-1; i >= 0 && this.stk[i] !== Infinity; i--) ; if (i < 0) throw "array: underflow"; var t = this.stk.splice(i+1, this.ptr-1-i); this.ptr = i; this.stk[this.ptr++]=BWIPJS.psarray(t); this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]="bbs"; //ident this.stk[this.ptr++]=Infinity; this.stk[this.ptr++]=17; this.stk[this.ptr++]=$f32; var t59=this.stk[--this.ptr]; var t57=this.stk[--this.ptr]; for (var t58=0; t58<t57; t58++) { if (t59.call(this)==-1) break; } for (var i = this.ptr-1; i >= 0 && this.stk[i] !== Infinity; i--) ; if (i < 0) throw "array: underflow"; var t = this.stk.splice(i+1, this.ptr-1-i); this.ptr = i; this.stk[this.ptr++]=BWIPJS.psarray(t); this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]="txt"; //ident this.stk[this.ptr++]=BWIPJS.psarray([]); this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; } function $f34(){ var t=this.dstk.get("addontextxoffset"); if (t===undefined) throw new Error("dict: addontextxoffset: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; } function $f35(){ this.stk[this.ptr++]=51; var t=this.dstk.get("addongap"); if (t===undefined) throw new Error("dict: addongap: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr-2]=this.stk[this.ptr-2]+this.stk[this.ptr-1]; this.ptr--; } function $f36(){ this.stk[this.ptr++]="textyoffset"; //ident var t=this.dstk.get("addontextyoffset"); if (t===undefined) throw new Error("dict: addontextyoffset: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; } function $f37(){ var t=this.dstk.get("addontextsize"); if (t===undefined) throw new Error("dict: addontextsize: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; } function $f38(){ var t=this.dstk.get("textsize"); if (t===undefined) throw new Error("dict: textsize: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; } function $f39(){ var t=this.dstk.get("addontextfont"); if (t===undefined) throw new Error("dict: addontextfont: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; } function $f40(){ var t=this.dstk.get("textfont"); if (t===undefined) throw new Error("dict: textfont: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; } function $f41(){ var t=this.dstk.get("addon"); if (t===undefined) throw new Error("dict: addon: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.dstk.get("addopts"); if (t===undefined) throw new Error("dict: addopts: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.dstk.get("ean2"); if (t===undefined) throw new Error("//ean2: undefined"); this.stk[this.ptr++]=t; var t=this.stk[--this.ptr]; if (t instanceof Function) t.call(this); else this.eval(t); } function $f42(){ var t=this.dstk.get("addon"); if (t===undefined) throw new Error("dict: addon: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.dstk.get("addopts"); if (t===undefined) throw new Error("dict: addopts: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.dstk.get("ean5"); if (t===undefined) throw new Error("//ean5: undefined"); this.stk[this.ptr++]=t; var t=this.stk[--this.ptr]; if (t instanceof Function) t.call(this); else this.eval(t); } function $f43(){ this.stk[this.ptr++]=0.075; this.stk[this.ptr-2]=this.stk[this.ptr-2]-this.stk[this.ptr-1]; this.ptr--; } function $f44(){ this.stk[this.ptr++]=0.075; this.stk[this.ptr-2]=this.stk[this.ptr-2]+this.stk[this.ptr-1]; this.ptr--; } function $f45(){ this.stk[this.ptr++]="addopts"; //ident this.stk[this.ptr++]=Infinity; this.stk[this.ptr++]="dontdraw"; //ident this.stk[this.ptr++]=true; this.stk[this.ptr++]="includetext"; //ident this.stk[this.ptr++]=true; this.stk[this.ptr++]="height"; //ident var t=this.dstk.get("height"); if (t===undefined) throw new Error("dict: height: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=0.15; this.stk[this.ptr-2]=this.stk[this.ptr-2]-this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]="textxoffset"; //ident var t=this.dstk.get("addontextxoffset"); if (t===undefined) throw new Error("dict: addontextxoffset: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=BWIPJS.psstring("unset"); if (this.stk[this.ptr-2] instanceof BWIPJS.psstring) this.stk[this.ptr-2]=this.stk[this.ptr-2].toString()!=this.stk[this.ptr-1]; else this.stk[this.ptr-2]=this.stk[this.ptr-2]!=this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=$f34; this.stk[this.ptr++]=$f35; var t62=this.stk[--this.ptr]; var t63=this.stk[--this.ptr]; if (this.stk[--this.ptr]) { if (t63.call(this)==-1) return -1; } else { if (t62.call(this)==-1) return -1; } var t=this.dstk.get("addontextyoffset"); if (t===undefined) throw new Error("dict: addontextyoffset: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=BWIPJS.psstring("unset"); if (this.stk[this.ptr-2] instanceof BWIPJS.psstring) this.stk[this.ptr-2]=this.stk[this.ptr-2].toString()!=this.stk[this.ptr-1]; else this.stk[this.ptr-2]=this.stk[this.ptr-2]!=this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=$f36; var t64=this.stk[--this.ptr]; if (this.stk[--this.ptr]) { if (t64.call(this)==-1) return -1; } this.stk[this.ptr++]="textsize"; //ident var t=this.dstk.get("addontextsize"); if (t===undefined) throw new Error("dict: addontextsize: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=BWIPJS.psstring("unset"); if (this.stk[this.ptr-2] instanceof BWIPJS.psstring) this.stk[this.ptr-2]=this.stk[this.ptr-2].toString()!=this.stk[this.ptr-1]; else this.stk[this.ptr-2]=this.stk[this.ptr-2]!=this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=$f37; this.stk[this.ptr++]=$f38; var t65=this.stk[--this.ptr]; var t66=this.stk[--this.ptr]; if (this.stk[--this.ptr]) { if (t66.call(this)==-1) return -1; } else { if (t65.call(this)==-1) return -1; } this.stk[this.ptr++]="textfont"; //ident var t=this.dstk.get("addontextfont"); if (t===undefined) throw new Error("dict: addontextfont: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=BWIPJS.psstring("unset"); if (this.stk[this.ptr-2] instanceof BWIPJS.psstring) this.stk[this.ptr-2]=this.stk[this.ptr-2].toString()!=this.stk[this.ptr-1]; else this.stk[this.ptr-2]=this.stk[this.ptr-2]!=this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=$f39; this.stk[this.ptr++]=$f40; var t67=this.stk[--this.ptr]; var t68=this.stk[--this.ptr]; if (this.stk[--this.ptr]) { if (t68.call(this)==-1) return -1; } else { if (t67.call(this)==-1) return -1; } var t = {}; for (var i = this.ptr-1; i >= 1 && this.stk[i] !== Infinity; i-=2) { if (this.stk[i-1] === Infinity) throw "dict: malformed stack"; t[this.stk[i-1]]=this.stk[i]; } if (i < 0 || this.stk[i]!==Infinity) throw "dict: underflow"; this.ptr = i; this.stk[this.ptr++]=t; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; var t=this.dstk.get("addon"); if (t===undefined) throw new Error("dict: addon: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; if (typeof(this.stk[this.ptr-1].length)!=="number") throw "length: invalid: " + BWIPJS.pstype(this.stk[this.ptr-1]); this.stk[this.ptr-1]=this.stk[this.ptr-1].length; this.stk[this.ptr++]=2; if (this.stk[this.ptr-2] instanceof BWIPJS.psstring) this.stk[this.ptr-2]=this.stk[this.ptr-2].toString()==this.stk[this.ptr-1]; else this.stk[this.ptr-2]=this.stk[this.ptr-2]==this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=$f41; var t69=this.stk[--this.ptr]; if (this.stk[--this.ptr]) { if (t69.call(this)==-1) return -1; } var t=this.dstk.get("addon"); if (t===undefined) throw new Error("dict: addon: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; if (typeof(this.stk[this.ptr-1].length)!=="number") throw "length: invalid: " + BWIPJS.pstype(this.stk[this.ptr-1]); this.stk[this.ptr-1]=this.stk[this.ptr-1].length; this.stk[this.ptr++]=5; if (this.stk[this.ptr-2] instanceof BWIPJS.psstring) this.stk[this.ptr-2]=this.stk[this.ptr-2].toString()==this.stk[this.ptr-1]; else this.stk[this.ptr-2]=this.stk[this.ptr-2]==this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=$f42; var t70=this.stk[--this.ptr]; if (this.stk[--this.ptr]) { if (t70.call(this)==-1) return -1; } this.stk[this.ptr++]="addcode"; //ident var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]="sbs"; //ident this.stk[this.ptr++]=Infinity; var t=this.dstk.get("sbs"); if (t===undefined) throw new Error("dict: sbs: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.stk[this.ptr-1]; for (var i = 0; i < t.length; i++) this.stk[this.ptr-1+i]=t.get(i); this.ptr += t.length; this.stk[this.ptr-1]=t; this.ptr--; var t=this.dstk.get("addongap"); if (t===undefined) throw new Error("dict: addongap: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.dstk.get("addcode"); if (t===undefined) throw new Error("dict: addcode: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=BWIPJS.psstring("sbs"); if (this.stk[this.ptr-2] instanceof BWIPJS.psstring || this.stk[this.ptr-2] instanceof BWIPJS.psarray) this.stk[this.ptr-2]=this.stk[this.ptr-2].get(this.stk[this.ptr-1]); else this.stk[this.ptr-2]=this.stk[this.ptr-2][this.stk[this.ptr-1].toString()]; this.ptr--; var t=this.stk[this.ptr-1]; for (var i = 0; i < t.length; i++) this.stk[this.ptr-1+i]=t.get(i); this.ptr += t.length; this.stk[this.ptr-1]=t; this.ptr--; for (var i = this.ptr-1; i >= 0 && this.stk[i] !== Infinity; i--) ; if (i < 0) throw "array: underflow"; var t = this.stk.splice(i+1, this.ptr-1-i); this.ptr = i; this.stk[this.ptr++]=BWIPJS.psarray(t); this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]="bhs"; //ident this.stk[this.ptr++]=Infinity; var t=this.dstk.get("bhs"); if (t===undefined) throw new Error("dict: bhs: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.stk[this.ptr-1]; for (var i = 0; i < t.length; i++) this.stk[this.ptr-1+i]=t.get(i); this.ptr += t.length; this.stk[this.ptr-1]=t; this.ptr--; var t=this.dstk.get("addcode"); if (t===undefined) throw new Error("dict: addcode: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=BWIPJS.psstring("bhs"); if (this.stk[this.ptr-2] instanceof BWIPJS.psstring || this.stk[this.ptr-2] instanceof BWIPJS.psarray) this.stk[this.ptr-2]=this.stk[this.ptr-2].get(this.stk[this.ptr-1]); else this.stk[this.ptr-2]=this.stk[this.ptr-2][this.stk[this.ptr-1].toString()]; this.ptr--; this.stk[this.ptr++]=$f43; var t73=this.stk[--this.ptr]; var t72=this.stk[--this.ptr]; for (t71 in t72) { if (t72 instanceof BWIPJS.psstring || t72 instanceof BWIPJS.psarray) { if (t71.charCodeAt(0) > 57) continue; this.stk[this.ptr++]=t72.get(t71); } else { this.stk[this.ptr++]=t71; this.stk[this.ptr++]=t72[t71]; } if (t73.call(this)==-1) break; } for (var i = this.ptr-1; i >= 0 && this.stk[i] !== Infinity; i--) ; if (i < 0) throw "array: underflow"; var t = this.stk.splice(i+1, this.ptr-1-i); this.ptr = i; this.stk[this.ptr++]=BWIPJS.psarray(t); this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]="bbs"; //ident this.stk[this.ptr++]=Infinity; var t=this.dstk.get("bbs"); if (t===undefined) throw new Error("dict: bbs: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.stk[this.ptr-1]; for (var i = 0; i < t.length; i++) this.stk[this.ptr-1+i]=t.get(i); this.ptr += t.length; this.stk[this.ptr-1]=t; this.ptr--; var t=this.dstk.get("addcode"); if (t===undefined) throw new Error("dict: addcode: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=BWIPJS.psstring("bbs"); if (this.stk[this.ptr-2] instanceof BWIPJS.psstring || this.stk[this.ptr-2] instanceof BWIPJS.psarray) this.stk[this.ptr-2]=this.stk[this.ptr-2].get(this.stk[this.ptr-1]); else this.stk[this.ptr-2]=this.stk[this.ptr-2][this.stk[this.ptr-1].toString()]; this.ptr--; this.stk[this.ptr++]=$f44; var t76=this.stk[--this.ptr]; var t75=this.stk[--this.ptr]; for (t74 in t75) { if (t75 instanceof BWIPJS.psstring || t75 instanceof BWIPJS.psarray) { if (t74.charCodeAt(0) > 57) continue; this.stk[this.ptr++]=t75.get(t74); } else { this.stk[this.ptr++]=t74; this.stk[this.ptr++]=t75[t74]; } if (t76.call(this)==-1) break; } for (var i = this.ptr-1; i >= 0 && this.stk[i] !== Infinity; i--) ; if (i < 0) throw "array: underflow"; var t = this.stk.splice(i+1, this.ptr-1-i); this.ptr = i; this.stk[this.ptr++]=BWIPJS.psarray(t); this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]="txt"; //ident this.stk[this.ptr++]=Infinity; var t=this.dstk.get("txt"); if (t===undefined) throw new Error("dict: txt: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.stk[this.ptr-1]; for (var i = 0; i < t.length; i++) this.stk[this.ptr-1+i]=t.get(i); this.ptr += t.length; this.stk[this.ptr-1]=t; this.ptr--; var t=this.dstk.get("addcode"); if (t===undefined) throw new Error("dict: addcode: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=BWIPJS.psstring("txt"); if (this.stk[this.ptr-2] instanceof BWIPJS.psstring || this.stk[this.ptr-2] instanceof BWIPJS.psarray) this.stk[this.ptr-2]=this.stk[this.ptr-2].get(this.stk[this.ptr-1]); else this.stk[this.ptr-2]=this.stk[this.ptr-2][this.stk[this.ptr-1].toString()]; this.ptr--; var t=this.stk[this.ptr-1]; for (var i = 0; i < t.length; i++) this.stk[this.ptr-1+i]=t.get(i); this.ptr += t.length; this.stk[this.ptr-1]=t; this.ptr--; for (var i = this.ptr-1; i >= 0 && this.stk[i] !== Infinity; i--) ; if (i < 0) throw "array: underflow"; var t = this.stk.splice(i+1, this.ptr-1-i); this.ptr = i; this.stk[this.ptr++]=BWIPJS.psarray(t); this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]="guardrightypos"; //ident var t=this.dstk.get("height"); if (t===undefined) throw new Error("dict: height: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=72; this.stk[this.ptr-2]=this.stk[this.ptr-2]*this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=6; this.stk[this.ptr-2]=this.stk[this.ptr-2]-this.stk[this.ptr-1]; this.ptr--; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; } this.stk[this.ptr++]=20; this.stk[this.ptr-1]={}; this.dict=this.stk[--this.ptr]; this.dstk.push(this.dict); this.stk[this.ptr++]="options"; //ident var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]="barcode"; //ident var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]="dontdraw"; //ident this.stk[this.ptr++]=false; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]="includetext"; //ident this.stk[this.ptr++]=false; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]="textfont"; //ident this.stk[this.ptr++]="Helvetica"; //ident this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]="textsize"; //ident this.stk[this.ptr++]=12; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]="textxoffset"; //ident this.stk[this.ptr++]=-7; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; this.stk[this.ptr++]="textyof