UNPKG

rescode

Version:

Generate Codes (EAN13, QRCODE ..)

1,069 lines 294 kB
var BWIPJS = require("../bwip.js"); // file: bwipp/gs1-cc.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 gs1-cc if (!BWIPJS.bwipp["renmatrix"]) BWIPJS.load("bwipp/renmatrix.js"); if (!BWIPJS.bwipp["pdf417"]) BWIPJS.load("bwipp/pdf417.js"); if (!BWIPJS.bwipp["micropdf417"]) BWIPJS.load("bwipp/micropdf417.js"); BWIPJS.bwipp["gs1-cc"]=function() { this.dict["renmatrix"]=BWIPJS.bwipp["renmatrix"]; this.dict["pdf417"]=BWIPJS.bwipp["pdf417"]; this.dict["micropdf417"]=BWIPJS.bwipp["micropdf417"]; 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++]=4; } function $f7(){ var t=this.dstk.get("linwidth"); if (t===undefined) throw new Error("dict: linwidth: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=52; this.stk[this.ptr-2]=this.stk[this.ptr-2]-this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=17; this.stk[this.ptr-2]=Math.floor(this.stk[this.ptr-2]/this.stk[this.ptr-1]); this.ptr--; } function $f8(){ this.stk[this.ptr++]=Infinity; this.stk[this.ptr++]="ean13"; //ident this.stk[this.ptr++]=4; this.stk[this.ptr++]="upca"; //ident this.stk[this.ptr++]=4; this.stk[this.ptr++]="ean8"; //ident this.stk[this.ptr++]=3; this.stk[this.ptr++]="upce"; //ident this.stk[this.ptr++]=2; this.stk[this.ptr++]="gs1-128"; //ident var t=this.dstk.get("ccversion"); if (t===undefined) throw new Error("dict: ccversion: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=BWIPJS.psstring("c"); 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++]=$f6; this.stk[this.ptr++]=$f7; var t8=this.stk[--this.ptr]; var t9=this.stk[--this.ptr]; if (this.stk[--this.ptr]) { if (t9.call(this)==-1) return -1; } else { if (t8.call(this)==-1) return -1; } this.stk[this.ptr++]="databaromni"; //ident this.stk[this.ptr++]=4; this.stk[this.ptr++]="databarstacked"; //ident this.stk[this.ptr++]=2; this.stk[this.ptr++]="databarstackedomni"; //ident this.stk[this.ptr++]=2; this.stk[this.ptr++]="databartruncated"; //ident this.stk[this.ptr++]=4; this.stk[this.ptr++]="databarlimited"; //ident this.stk[this.ptr++]=3; this.stk[this.ptr++]="databarexpanded"; //ident this.stk[this.ptr++]=4; this.stk[this.ptr++]="databarexpandedstacked"; //ident this.stk[this.ptr++]=4; 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; var t=this.dstk.get("lintype"); if (t===undefined) throw new Error("dict: lintype: 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++]="cccolumns"; //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 $f9(){ this.stk[this.ptr]=this.stk[this.ptr-1]; this.ptr++; var t=this.dstk.get("out"); if (t===undefined) throw new Error("dict: out: 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 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; var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; this.stk[this.ptr-3].assign(this.stk[this.ptr-2],this.stk[this.ptr-1]); this.ptr-=3; 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; 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--; 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.ptr--; this.stk[this.ptr]=this.stk[this.ptr-1]; this.ptr++; this.stk[this.ptr++]=0; 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-1]=parseInt(this.stk[this.ptr-1],10); var t=this.dstk.get("out"); if (t===undefined) throw new Error("dict: out: 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 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++]=1; this.stk[this.ptr-2]=this.stk[this.ptr-2]-this.stk[this.ptr-1]; 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; 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; 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++]=3; this.stk[this.ptr-2]=this.stk[this.ptr-2]-this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=3; var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; this.stk[this.ptr-3]=this.stk[this.ptr-3].subset(this.stk[this.ptr-2],this.stk[this.ptr-1]); this.ptr-=2; } function $f10(){ this.stk[this.ptr]=this.stk[this.ptr-1]; this.ptr++; var t=this.dstk.get("out"); if (t===undefined) throw new Error("dict: out: 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 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; var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; this.stk[this.ptr-3].assign(this.stk[this.ptr-2],this.stk[this.ptr-1]); this.ptr-=3; 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; 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++]="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; var t=this.dstk.get("out"); if (t===undefined) throw new Error("dict: out: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=0; 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-3]=this.stk[this.ptr-3].subset(this.stk[this.ptr-2],this.stk[this.ptr-1]); this.ptr-=2; return -1; } function $f11(){ 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++]=$f9; this.stk[this.ptr++]=$f10; var t11=this.stk[--this.ptr]; var t12=this.stk[--this.ptr]; if (this.stk[--this.ptr]) { if (t12.call(this)==-1) return -1; } else { if (t11.call(this)==-1) return -1; } } function $f12(){ this.stk[this.ptr++]="in"; //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++]="out"; //ident var t=this.dstk.get("in"); if (t===undefined) throw new Error("dict: in: 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++]="j"; //ident this.stk[this.ptr++]=0; this.dict[this.stk[this.ptr-2]]=this.stk[this.ptr-1]; this.ptr-=2; var t=this.dstk.get("in"); if (t===undefined) throw new Error("dict: in: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=$f11; var t13=this.stk[--this.ptr]; while (true) { if (t13.call(this)==-1) break; } } function $f13(){ return -1; } function $f14(){ 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.stk[this.ptr++]=3; this.stk[this.ptr++]=1; var b=this.stk[--this.ptr]; var a=this.stk[--this.ptr]; if (a > this.ptr) throw "roll: underflow: this.ptr="+this.ptr+",offset="+a; if (b < 0) var t=this.stk.splice(this.ptr-a, -b); else var t=this.stk.splice(this.ptr-a, a-b); this.stk.splice.apply(this.stk, [this.ptr-t.length, 0].concat(t)); } function $f15(){ this.stk[this.ptr++]=BWIPJS.psstring(""); this.stk[this.ptr++]=3; this.stk[this.ptr++]=1; var b=this.stk[--this.ptr]; var a=this.stk[--this.ptr]; if (a > this.ptr) throw "roll: underflow: this.ptr="+this.ptr+",offset="+a; if (b < 0) var t=this.stk.splice(this.ptr-a, -b); else var t=this.stk.splice(this.ptr-a, a-b); this.stk.splice.apply(this.stk, [this.ptr-t.length, 0].concat(t)); } function $f16(){ this.stk[this.ptr]=this.stk[this.ptr-1]; this.ptr++; this.stk[this.ptr++]=BWIPJS.psstring(""); 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++]=$f13; var t14=this.stk[--this.ptr]; if (this.stk[--this.ptr]) { if (t14.call(this)==-1) return -1; } 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.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.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.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++]=$f14; this.stk[this.ptr++]=$f15; var t15=this.stk[--this.ptr]; var t16=this.stk[--this.ptr]; if (this.stk[--this.ptr]) { if (t16.call(this)==-1) return -1; } else { if (t15.call(this)==-1) return -1; } this.stk[this.ptr++]=Infinity; var t=this.dstk.get("ais"); if (t===undefined) throw new Error("dict: ais: 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--; for (var i=this.ptr-1; i>=0 && this.stk[i]!==Infinity; i--); if (i==-1) throw "counttomark: underflow"; this.stk[this.ptr]=this.ptr-i-1; this.ptr++; this.stk[this.ptr++]=2; this.stk[this.ptr-2]=this.stk[this.ptr-2]+this.stk[this.ptr-1]; this.ptr--; if (this.stk[this.ptr-1] >= this.ptr) throw "index: underflow"; this.stk[this.ptr-1]=this.stk[this.ptr-2-this.stk[this.ptr-1]]; 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.stk[this.ptr++]="ais"; //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("aival"); if (t===undefined) throw new Error("dict: aival: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=3; this.stk[this.ptr++]=1; var b=this.stk[--this.ptr]; var a=this.stk[--this.ptr]; if (a > this.ptr) throw "roll: underflow: this.ptr="+this.ptr+",offset="+a; if (b < 0) var t=this.stk.splice(this.ptr-a, -b); else var t=this.stk.splice(this.ptr-a, a-b); this.stk.splice.apply(this.stk, [this.ptr-t.length, 0].concat(t)); var t=this.dstk.get("expand"); if (t===undefined) throw new Error("dict: expand: 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 $f17(){ this.stk[this.ptr]=this.stk[this.ptr-1]; this.ptr++; this.stk[this.ptr++]=65; this.stk[this.ptr-2]=this.stk[this.ptr-2]>=this.stk[this.ptr-1]; 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.stk[this.ptr++]=90; this.stk[this.ptr-2]=this.stk[this.ptr-2]<=this.stk[this.ptr-1]; this.ptr--; if (typeof(this.stk[this.ptr-1])=="boolean") this.stk[this.ptr-2]=this.stk[this.ptr-2]&&this.stk[this.ptr-1]; else this.stk[this.ptr-2]=this.stk[this.ptr-2]&this.stk[this.ptr-1]; this.ptr--; } function $f18(){ this.stk[this.ptr]=this.stk[this.ptr-1]; this.ptr++; this.stk[this.ptr++]=48; this.stk[this.ptr-2]=this.stk[this.ptr-2]>=this.stk[this.ptr-1]; 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.stk[this.ptr++]=57; this.stk[this.ptr-2]=this.stk[this.ptr-2]<=this.stk[this.ptr-1]; this.ptr--; if (typeof(this.stk[this.ptr-1])=="boolean") this.stk[this.ptr-2]=this.stk[this.ptr-2]&&this.stk[this.ptr-1]; else this.stk[this.ptr-2]=this.stk[this.ptr-2]&this.stk[this.ptr-1]; this.ptr--; } function $f19(){ this.stk[this.ptr]=this.stk[this.ptr-1]; this.ptr++; this.stk[this.ptr++]=49; this.stk[this.ptr-2]=this.stk[this.ptr-2]>=this.stk[this.ptr-1]; 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.stk[this.ptr++]=57; this.stk[this.ptr-2]=this.stk[this.ptr-2]<=this.stk[this.ptr-1]; this.ptr--; if (typeof(this.stk[this.ptr-1])=="boolean") this.stk[this.ptr-2]=this.stk[this.ptr-2]&&this.stk[this.ptr-1]; else this.stk[this.ptr-2]=this.stk[this.ptr-2]&this.stk[this.ptr-1]; this.ptr--; } function $f20(){ this.stk[this.ptr++]=-1; this.stk[this.ptr++]=BWIPJS.psstring("10"); return -1; } function $f21(){ var t=this.dstk.get("ais"); if (t===undefined) throw new Error("dict: ais: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=0; 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++]=BWIPJS.psstring("10"); 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--; var t=this.dstk.get("ais"); if (t===undefined) throw new Error("dict: ais: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=0; 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++]=BWIPJS.psstring("11"); 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--; if (typeof(this.stk[this.ptr-1])=="boolean") this.stk[this.ptr-2]=this.stk[this.ptr-2]||this.stk[this.ptr-1]; else this.stk[this.ptr-2]=this.stk[this.ptr-2]|this.stk[this.ptr-1]; this.ptr--; var t=this.dstk.get("ais"); if (t===undefined) throw new Error("dict: ais: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=0; 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++]=BWIPJS.psstring("17"); 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--; if (typeof(this.stk[this.ptr-1])=="boolean") this.stk[this.ptr-2]=this.stk[this.ptr-2]||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; var t18=this.stk[--this.ptr]; if (this.stk[--this.ptr]) { if (t18.call(this)==-1) return -1; } } function $f22(){ this.stk[this.ptr++]=0; this.stk[this.ptr++]=BWIPJS.psstring("11"); return -1; } function $f23(){ var t=this.dstk.get("v"); if (t===undefined) throw new Error("dict: v: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=0; 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.dstk.get("isupper"); if (t===undefined) throw new Error("dict: isupper: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=$f22; var t20=this.stk[--this.ptr]; if (this.stk[--this.ptr]) { if (t20.call(this)==-1) return -1; } } function $f24(){ this.stk[this.ptr++]=1; this.stk[this.ptr++]=BWIPJS.psstring("11"); return -1; } function $f25(){ var t=this.dstk.get("v"); if (t===undefined) throw new Error("dict: v: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=0; 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.dstk.get("isnum1"); if (t===undefined) throw new Error("dict: isnum1: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.dstk.get("v"); if (t===undefined) throw new Error("dict: v: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=1; 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.dstk.get("isupper"); if (t===undefined) throw new Error("dict: isupper: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; if (typeof(this.stk[this.ptr-1])=="boolean") this.stk[this.ptr-2]=this.stk[this.ptr-2]&&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++]=$f24; var t22=this.stk[--this.ptr]; if (this.stk[--this.ptr]) { if (t22.call(this)==-1) return -1; } } function $f26(){ this.stk[this.ptr++]=2; this.stk[this.ptr++]=BWIPJS.psstring("11"); return -1; } function $f27(){ var t=this.dstk.get("v"); if (t===undefined) throw new Error("dict: v: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=0; 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.dstk.get("isnum1"); if (t===undefined) throw new Error("dict: isnum1: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.dstk.get("v"); if (t===undefined) throw new Error("dict: v: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=1; 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.dstk.get("isnum0"); if (t===undefined) throw new Error("dict: isnum0: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; if (typeof(this.stk[this.ptr-1])=="boolean") this.stk[this.ptr-2]=this.stk[this.ptr-2]&&this.stk[this.ptr-1]; else this.stk[this.ptr-2]=this.stk[this.ptr-2]&this.stk[this.ptr-1]; this.ptr--; var t=this.dstk.get("v"); if (t===undefined) throw new Error("dict: v: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=2; 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.dstk.get("isupper"); if (t===undefined) throw new Error("dict: isupper: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; if (typeof(this.stk[this.ptr-1])=="boolean") this.stk[this.ptr-2]=this.stk[this.ptr-2]&&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++]=$f26; var t24=this.stk[--this.ptr]; if (this.stk[--this.ptr]) { if (t24.call(this)==-1) return -1; } } function $f28(){ this.stk[this.ptr++]=3; this.stk[this.ptr++]=BWIPJS.psstring("11"); return -1; } function $f29(){ var t=this.dstk.get("v"); if (t===undefined) throw new Error("dict: v: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=0; 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.dstk.get("isnum1"); if (t===undefined) throw new Error("dict: isnum1: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; var t=this.dstk.get("v"); if (t===undefined) throw new Error("dict: v: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=1; 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.dstk.get("isnum0"); if (t===undefined) throw new Error("dict: isnum0: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; if (typeof(this.stk[this.ptr-1])=="boolean") this.stk[this.ptr-2]=this.stk[this.ptr-2]&&this.stk[this.ptr-1]; else this.stk[this.ptr-2]=this.stk[this.ptr-2]&this.stk[this.ptr-1]; this.ptr--; var t=this.dstk.get("v"); if (t===undefined) throw new Error("dict: v: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=2; 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.dstk.get("isnum0"); if (t===undefined) throw new Error("dict: isnum0: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; if (typeof(this.stk[this.ptr-1])=="boolean") this.stk[this.ptr-2]=this.stk[this.ptr-2]&&this.stk[this.ptr-1]; else this.stk[this.ptr-2]=this.stk[this.ptr-2]&this.stk[this.ptr-1]; this.ptr--; var t=this.dstk.get("v"); if (t===undefined) throw new Error("dict: v: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=3; 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.dstk.get("isupper"); if (t===undefined) throw new Error("dict: isupper: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; if (typeof(this.stk[this.ptr-1])=="boolean") this.stk[this.ptr-2]=this.stk[this.ptr-2]&&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++]=$f28; var t26=this.stk[--this.ptr]; if (this.stk[--this.ptr]) { if (t26.call(this)==-1) return -1; } } function $f30(){ this.stk[this.ptr++]="v"; //ident var t=this.dstk.get("aival"); if (t===undefined) throw new Error("dict: aival: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=BWIPJS.psstring("90"); 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("v"); if (t===undefined) throw new Error("dict: v: 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++]=$f23; var t21=this.stk[--this.ptr]; if (this.stk[--this.ptr]) { if (t21.call(this)==-1) return -1; } var t=this.dstk.get("v"); if (t===undefined) throw new Error("dict: v: 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; this.stk[this.ptr-2]=this.stk[this.ptr-2]>=this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=$f25; var t23=this.stk[--this.ptr]; if (this.stk[--this.ptr]) { if (t23.call(this)==-1) return -1; } var t=this.dstk.get("v"); if (t===undefined) throw new Error("dict: v: 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++]=3; this.stk[this.ptr-2]=this.stk[this.ptr-2]>=this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=$f27; var t25=this.stk[--this.ptr]; if (this.stk[--this.ptr]) { if (t25.call(this)==-1) return -1; } var t=this.dstk.get("v"); if (t===undefined) throw new Error("dict: v: 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++]=4; this.stk[this.ptr-2]=this.stk[this.ptr-2]>=this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=$f29; var t27=this.stk[--this.ptr]; if (this.stk[--this.ptr]) { if (t27.call(this)==-1) return -1; } } function $f31(){ var t=this.dstk.get("ais"); if (t===undefined) throw new Error("dict: ais: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; this.stk[this.ptr++]=0; 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++]=BWIPJS.psstring("90"); 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++]=$f30; var t28=this.stk[--this.ptr]; if (this.stk[--this.ptr]) { if (t28.call(this)==-1) return -1; } } function $f32(){ var t=this.dstk.get("ais"); if (t===undefined) throw new Error("dict: ais: 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++]=$f21; var t19=this.stk[--this.ptr]; if (this.stk[--this.ptr]) { if (t19.call(this)==-1) return -1; } var t=this.dstk.get("ais"); if (t===undefined) throw new Error("dict: ais: 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++]=$f31; var t29=this.stk[--this.ptr]; if (this.stk[--this.ptr]) { if (t29.call(this)==-1) return -1; } this.stk[this.ptr++]=-1; this.stk[this.ptr++]=BWIPJS.psstring("0"); return -1; } function $f33(){ this.stk[this.ptr++]=1; if (this.stk[this.ptr-1] >= this.ptr) throw "index: underflow"; this.stk[this.ptr-1]=this.stk[this.ptr-2-this.stk[this.ptr-1]]; var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=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 $f34(){ this.stk[this.ptr-1]=BWIPJS.psstring(this.stk[this.ptr-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; this.stk[this.ptr-2]=this.stk[this.ptr-2]-this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=0; var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; this.stk[this.ptr++]=1; var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; this.stk[this.ptr++]=$f33; var t35=this.stk[--this.ptr]; var t33=this.stk[--this.ptr]; var t32=this.stk[--this.ptr]; var t31=this.stk[--this.ptr]; for (var t34=t31; t32<0 ? t34>=t33 : t34<=t33; t34+=t32) { this.stk[this.ptr++]=t34; if (t35.call(this)==-1) break; } this.stk[this.ptr]=this.stk[this.ptr-1]; this.ptr++; this.stk[this.ptr++]=3; this.stk[this.ptr++]=-1; var b=this.stk[--this.ptr]; var a=this.stk[--this.ptr]; if (a > this.ptr) throw "roll: underflow: this.ptr="+this.ptr+",offset="+a; if (b < 0) var t=this.stk.splice(this.ptr-a, -b); else var t=this.stk.splice(this.ptr-a, a-b); this.stk.splice.apply(this.stk, [this.ptr-t.length, 0].concat(t)); this.stk[this.ptr++]=2; this.stk[this.ptr++]=2; if (this.stk[this.ptr-1] >= this.ptr) throw "index: underflow"; this.stk[this.ptr-1]=this.stk[this.ptr-2-this.stk[this.ptr-1]]; 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-3].toString(this.stk[this.ptr-2]).toUpperCase(); this.stk[this.ptr-1].assign(0,t); this.stk[this.ptr-3]=this.stk[this.ptr-1].subset(0,t.length); this.ptr-=2; 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++]=2; if (this.stk[this.ptr-1] >= this.ptr) throw "index: underflow"; this.stk[this.ptr-1]=this.stk[this.ptr-2-this.stk[this.ptr-1]]; 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; var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; this.stk[this.ptr-2]=this.stk[this.ptr-2]-this.stk[this.ptr-1]; 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.stk[this.ptr-3].assign(this.stk[this.ptr-2],this.stk[this.ptr-1]); this.ptr-=3; } function $f35(){ this.stk[this.ptr]=this.stk[this.ptr-1]; this.ptr++; this.stk[this.ptr++]=65; this.stk[this.ptr-2]=this.stk[this.ptr-2]-this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=5; var t=this.dstk.get("tobin"); if (t===undefined) throw new Error("dict: tobin: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; } function $f36(){ this.stk[this.ptr]=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++]=6; var t=this.dstk.get("tobin"); if (t===undefined) throw new Error("dict: tobin: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; } function $f37(){ this.stk[this.ptr]=this.stk[this.ptr-1]; this.ptr++; this.stk[this.ptr++]=0; this.stk[this.ptr++]=94; 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 $f38(){ this.stk[this.ptr]=this.stk[this.ptr-1]; this.ptr++; this.stk[this.ptr++]=1; this.stk[this.ptr++]=94; 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 $f39(){ this.stk[this.ptr]=this.stk[this.ptr-1]; this.ptr++; this.stk[this.ptr++]=BWIPJS.psstring("00"); this.stk[this.ptr++]=2; this.stk[this.ptr-1]=BWIPJS.psstring(this.stk[this.ptr-1]); if (typeof(this.stk[this.ptr-1])=="number") { for (var n=this.stk[--this.ptr],t=this.ptr+n; this.ptr<t; this.ptr++) this.stk[this.ptr]=this.stk[this.ptr-n]; } else if (this.stk[this.ptr-1] instanceof BWIPJS.psstring||this.stk[this.ptr-1] instanceof BWIPJS.psarray) { this.stk[this.ptr-1].assign(0,this.stk[this.ptr-2]); this.stk[this.ptr-2]=this.stk[this.ptr-1].subset(0,this.stk[this.ptr-2].length); this.ptr--; } else { var src=this.stk[this.ptr-2]; var dst=this.stk[this.ptr-1]; for (var i in src) dst[i]=src[i]; this.stk[this.ptr-2]=dst; this.ptr--; } this.stk[this.ptr]=this.stk[this.ptr-1]; this.ptr++; this.stk[this.ptr++]=3; this.stk[this.ptr++]=-1; var b=this.stk[--this.ptr]; var a=this.stk[--this.ptr]; if (a > this.ptr) throw "roll: underflow: this.ptr="+this.ptr+",offset="+a; if (b < 0) var t=this.stk.splice(this.ptr-a, -b); else var t=this.stk.splice(this.ptr-a, a-b); this.stk.splice.apply(this.stk, [this.ptr-t.length, 0].concat(t)); this.stk[this.ptr++]=11; this.stk[this.ptr++]=2; this.stk[this.ptr-1]=BWIPJS.psstring(this.stk[this.ptr-1]); var t=this.stk[this.ptr-3].toString(this.stk[this.ptr-2]).toUpperCase(); this.stk[this.ptr-1].assign(0,t); this.stk[this.ptr-3]=this.stk[this.ptr-1].subset(0,t.length); this.ptr-=2; 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++]=2; var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; this.stk[this.ptr-2]=this.stk[this.ptr-2]-this.stk[this.ptr-1]; 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.stk[this.ptr-3].assign(this.stk[this.ptr-2],this.stk[this.ptr-1]); this.ptr-=3; this.stk[this.ptr]=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] 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++]=65; 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; var t46=this.stk[--this.ptr]; if (this.stk[--this.ptr]) { if (t46.call(this)==-1) return -1; } this.stk[this.ptr]=this.stk[this.ptr-1]; this.ptr++; this.stk[this.ptr++]=1; 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++]=65; 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++]=$f38; var t47=this.stk[--this.ptr]; if (this.stk[--this.ptr]) { if (t47.call(this)==-1) return -1; } var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; this.stk[this.ptr++]=8; this.stk[this.ptr-2]=this.stk[this.ptr-2]+this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=BWIPJS.psstring("0000000"); this.stk[this.ptr++]=7; this.stk[this.ptr-1]=BWIPJS.psstring(this.stk[this.ptr-1]); if (typeof(this.stk[this.ptr-1])=="number") { for (var n=this.stk[--this.ptr],t=this.ptr+n; this.ptr<t; this.ptr++) this.stk[this.ptr]=this.stk[this.ptr-n]; } else if (this.stk[this.ptr-1] instanceof BWIPJS.psstring||this.stk[this.ptr-1] instanceof BWIPJS.psarray) { this.stk[this.ptr-1].assign(0,this.stk[this.ptr-2]); this.stk[this.ptr-2]=this.stk[this.ptr-1].subset(0,this.stk[this.ptr-2].length); this.ptr--; } else { var src=this.stk[this.ptr-2]; var dst=this.stk[this.ptr-1]; for (var i in src) dst[i]=src[i]; this.stk[this.ptr-2]=dst; this.ptr--; } this.stk[this.ptr]=this.stk[this.ptr-1]; this.ptr++; this.stk[this.ptr++]=3; this.stk[this.ptr++]=-1; var b=this.stk[--this.ptr]; var a=this.stk[--this.ptr]; if (a > this.ptr) throw "roll: underflow: this.ptr="+this.ptr+",offset="+a; if (b < 0) var t=this.stk.splice(this.ptr-a, -b); else var t=this.stk.splice(this.ptr-a, a-b); this.stk.splice.apply(this.stk, [this.ptr-t.length, 0].concat(t)); this.stk[this.ptr++]=2; this.stk[this.ptr++]=7; this.stk[this.ptr-1]=BWIPJS.psstring(this.stk[this.ptr-1]); var t=this.stk[this.ptr-3].toString(this.stk[this.ptr-2]).toUpperCase(); this.stk[this.ptr-1].assign(0,t); this.stk[this.ptr-3]=this.stk[this.ptr-1].subset(0,t.length); this.ptr-=2; 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++]=7; var t=this.stk[this.ptr-2]; this.stk[this.ptr-2]=this.stk[this.ptr-1]; this.stk[this.ptr-1]=t; this.stk[this.ptr-2]=this.stk[this.ptr-2]-this.stk[this.ptr-1]; 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.stk[this.ptr-3].assign(this.stk[this.ptr-2],this.stk[this.ptr-1]); this.ptr-=3; } function $f40(){ this.stk[this.ptr]=this.stk[this.ptr-1]; this.ptr++; this.stk[this.ptr++]=43; this.stk[this.ptr-2]=this.stk[this.ptr-2]-this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=5; var t=this.dstk.get("tobin"); if (t===undefined) throw new Error("dict: tobin: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; } function $f41(){ this.stk[this.ptr]=this.stk[this.ptr-1]; this.ptr++; this.stk[this.ptr++]=33; this.stk[this.ptr-2]=this.stk[this.ptr-2]-this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=6; var t=this.dstk.get("tobin"); if (t===undefined) throw new Error("dict: tobin: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; } function $f42(){ this.stk[this.ptr]=this.stk[this.ptr-1]; this.ptr++; this.stk[this.ptr++]=15; this.stk[this.ptr-2]=this.stk[this.ptr-2]+this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=6; var t=this.dstk.get("tobin"); if (t===undefined) throw new Error("dict: tobin: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; } function $f43(){ this.stk[this.ptr]=this.stk[this.ptr-1]; this.ptr++; this.stk[this.ptr++]=43; this.stk[this.ptr-2]=this.stk[this.ptr-2]-this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=5; var t=this.dstk.get("tobin"); if (t===undefined) throw new Error("dict: tobin: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; } function $f44(){ this.stk[this.ptr]=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--; this.stk[this.ptr++]=7; var t=this.dstk.get("tobin"); if (t===undefined) throw new Error("dict: tobin: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; } function $f45(){ this.stk[this.ptr]=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++]=7; var t=this.dstk.get("tobin"); if (t===undefined) throw new Error("dict: tobin: undefined"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; } function $f46(){ this.stk[this.ptr]=this.stk[this.ptr-1]; this.ptr++; this.stk[this.ptr++]=197; this.stk[this.ptr-2]=this.stk[this.ptr-2]+this.stk[this.ptr-1]; this.ptr--; this.stk[this.ptr++]=8; var t=this.dstk.get("tobin")